Why doesn't the TTimeDuration (or the TTime) type have a format method (like the TDate type)?
SuperStrict
Framework BaH.DateTime
Import BRL.StandardIO
Local t:TTime = TTime.CreateLocal(), date:TDate, duration:TTimeDuration
Print t.toString()
date = t.date()
Print(date.format("%m-%d-%y_%I.%M.%S%p"))
' Works, but obviously the TDate type does not hold hours, minutes nor seconds.
duration = t.timeOfDay()
'Print(duration.format("%I.%M.%S%p"))
' format does not exist.
It would be extremely useful. If it was just something that wasn't yet wrapped, great! If not I'll just convert the 24-hour time to 12-hour.
NOTE: I am using 1.01 (from the downloads on the GoogleCode page).
|