DateTime missing some functionality?

BlitzMax Forums/Brucey's Modules/DateTime missing some functionality?

plash(Posted 2009) [#1]
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).


Brucey(Posted 2009) [#2]
You are right. I don't seem to have implemented time_facet... doh!