[Gambas-user] Native Date functions and milliseconds

Jussi Lahtinen jussi.lahtinen at ...626...
Mon Jun 2 16:52:07 CEST 2014


Documentation is not up to date. See attached screenshot. You don't see
this?
What is your Gambas version?


Jussi


On Mon, Jun 2, 2014 at 6:07 AM, B Bruen <bbruen at ...2308...> wrote:

> 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...>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 14501 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140602/456d1122/attachment.png>


More information about the User mailing list