Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: how do I get ampm format for time?

From: rchristiansen:pop:isdfa:sei-it at: 19-Jan-2001 10:57

This function should accomplish what you're looking for. time-meridian: func [ time-data [time!] ][ either time-data/hour < 12 [ meridian-time: rejoin [time-data/hour ":" time-data/minute " a.m. EST"] ][ meridian-time: rejoin [time-data/hour ":" time-data/minute " p.m. EST"] ] ] USAGE:
>> time-meridian now/time
== "10:57 a.m. EST" -Ryan