Jump to content


hh mm ss (implementing the sound of a bee)


  • Please log in to reply
8 replies to this topic

#1 BoBo

BoBo
  • Guests

Posted 09 July 2004 - 03:45 PM

Added built-in variables for month name (A_MMMM and A_MMM) and day name (A_DDDD and A_DDD). In addition, A_Year may now be optionally referred to as A_YYYY, A_Mon as A_MM, and A_MDay as A_DD.

Stolen from here ---> :p

Brilliant idea :D . Would you mind to change/replace/add ...

A_Hour; A_Min; A_Sec
with
A_hh; A_mm; A_ss

... as well ? Thx. :)

#2 Chris

Chris
  • Administrators
  • 10727 posts

Posted 09 July 2004 - 04:32 PM

I considered that, but a_mm is already used for day-of-month, so it can't be used for minute. Thus, it didn't seem worthwhile.

If there is a consensus (i.e. more than 1 person in this case) that the following would be easier to remember, I can add them as alternates:

a_hh: Hour (kinda bad in case 12 hour time is ever added, so maybe it should be a_hh24 instead).
a_mi: synonymous with a_min
a_ss: synonymous with a_sec

#3 Beastmaster

Beastmaster
  • Members
  • 191 posts

Posted 09 July 2004 - 08:18 PM

Well, I was aware that A_MM is used for a two digit month but I've thought that it could be set case sensitive so A_MM would be different to A_mm ...

:oops:

#4 Chris

Chris
  • Administrators
  • 10727 posts

Posted 10 July 2004 - 12:32 AM

Not a bad idea, but making some variables case sensitive would break from tradition and would likely cause more confusion than it's worth.

#5 Rajat

Rajat
  • Members
  • 1886 posts

Posted 10 July 2004 - 05:01 PM

"it could be set case sensitive so A_MM would be different to A_mm"
if implemented, that'd definitely need fixing atleast a couple of my scripts.

#6 Guests

  • Guests

Posted 28 July 2004 - 11:04 AM

a_hh: Hour (kinda bad in case 12 hour time is ever added, so maybe it should be a_hh24 instead).

Yeah I think thats a great idea! I know 24hour time is the standard in many parts of the world, but where I live its not.
Only problem I can see is adding a 12hour variable isn't enough, you would also have to add a way to handle AM/PM.

#7 Chris

Chris
  • Administrators
  • 10727 posts

Posted 28 July 2004 - 07:18 PM

The reason I haven't added 12-hour time is because of the AM/PM issue you mentioned. But I think it's a good idea so I will try to do it, thanks.

#8 Guests

  • Guests

Posted 29 July 2004 - 07:18 AM

One possible solution would be to have hour:min:sec AM/PM all in one variable string. Then have "options" to display the different parts. i.e. Just show Hour, and Minutes, but no seconds.

Another way I've seen that does this pretty well is Aldo's Macro Recorder. It uses a "format" command to let you set the way you want the time to be displayed.

format(time(), "h:nn am/pm")



#9 Chris

Chris
  • Administrators
  • 10727 posts

Posted 29 July 2004 - 11:48 AM

Thanks for the suggestions. I've added the following to the to-do list: "Note that there is currently no way to change a YYYYMMDDHH24 time to some other format without a custom subroutine. It would be nice to have a Transform command that simply does a timeprintf using a time format string provided by the user to mold a timestamp into a new layout."