Nvermine, I found it:
? T_TRAN(TIME())
FUNCTION T_TRAN
PARAMETERS t_time
t_hours = VAL(LEFT(t_time,2))
t_minutes = VAL(SUBSTR(t_time,AT(":",t_time)+1,2))
am_pm = "am"
DO CASE
CASE t_hours = 12
am_pm = "pm"
CASE t_hours > 12
t_hours = t_hours - 12
am_pm = "pm"
CASE t_hours < 1
t_hours = 12
ENDCASE
RETURN am_pm
>Silly question: How to tell if the local time is between 12:00pm and 12:00am? Need to determine if it is am or pm?
>
>TIA,
>Tracy
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"