Re: DateAndTime>>asTime
Posted by Yanni Chiu on Jun 06, 2013; 3:23am
URL: https://forum.world.st/DateAndTime-asTime-tp4691870p4691882.html
On 05/06/13 9:02 PM, dmacq wrote:
> DateAndTime now asTime inspect -----> 8:58:38.218 pm which is correct.
>
> THis is from a virgin image (no package imports) created by unzipping the
> Windows download.
>
> I will try a different DateAndTime instance creation method tomorrow and let
> you know.
>
> This is strange. Thanks.
Try it again in the morning! I think it's related to time zones. If, in
your local time, it is not yet midnight, but it's already the next day
at GMT, then you get a negative "something" (can't remember what).
I've seen the '-' (negative integer) show up in the time printString
result. I think I fixed it by printing the hours/minutes/seconds with a
custom print method.