[Gambas-user] Native Date functions and milliseconds
B Bruen
bbruen at ...2308...
Mon Jun 2 05:07:52 CEST 2014
I have just noticed that Date(Year,Month,Day,Hours,Minutes,Seconds) truncates the seconds. It looks like it is expecting an integer. I am trying to work with a "Server Timestamp" string value that gives me the seconds as a Float e.g. "2014-06-02T10:11:15.330" and the milliseconds part has now become important. Is this a bug?
Similarly, Second(Date as Date) is defined in the help as returning an integer, again shouldn't it return a float?
in the console
?`format(Now,"hh:nn:ss.u") prints something like "12:34:59.764", but
?`format(Date(2014,6,2,12,19,57.666),"hh:nn:ss.uu") prints "12:19:57.000"
tia
--
B Bruen <bbruen at ...2308...>
More information about the User
mailing list