[Gambas-user] Native Date functions and milliseconds

B Bruen bbruen at ...2308...
Tue Jun 3 00:25:47 CEST 2014


Aha, the inline completion help is correct. The wiki help page is wrong.
Thanks Jussi.

(But is there a Milliseconds(Date) funtion?)

Bruce


On Mon, 2 Jun 2014 17:52:07 +0300
Jussi Lahtinen <jussi.lahtinen at ...626...> wrote:

> 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
> >


-- 
B Bruen <bbruen at ...2308...>




More information about the User mailing list