[Gambas-user] Seconds => Time.Format(hh:mm:ss)

Emil Lenngren emil.lenngren at ...626...
Tue Jan 31 23:16:14 CET 2012


This is from the documentation:
Time

*Date* *= Time (* *Hours* AS Integer *,* *Minutes* AS Integer*,*
*Seconds* AS Integer*)* AS Date

Makes a time from its components.

PRINT Time(14, 08, 25)
------------------------------
14:08:25

So if you write:
PRINT Time(0, 0, 300)

It should print 00:05:00. I am not 100% sure, but you should try it.

2012/1/31 abbat <abbat.81 at ...787...>

>
> I've read the docs, but my "300" seconds is not the same like "NOW" so it
> does not work
>
> Emil Lenngren wrote:
> >
> > You should read the documentation.
> > http://gambasdoc.org/help/lang/time?v3
> > http://gambasdoc.org/help/cat/time?v3
> >
> > /Emil
> >
> > 2012/1/31 abbat <abbat.81 at ...787...>
> >
> >>
> >> How to convert a seconds to time format
> >>
> >> Dim Sec = 300
> >>
> >> How to display it as:
> >>
> >> 00:05:00
> >>
> >> Thanks
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239641.html
> >> Sent from the gambas-user mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Keep Your Developer Skills Current with LearnDevNow!
> >> The most comprehensive online learning library for Microsoft developers
> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> >> Metro Style Apps, more. Free future releases when you subscribe now!
> >> http://p.sf.net/sfu/learndevnow-d2d
> >> _______________________________________________
> >> Gambas-user mailing list
> >> Gambas-user at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> ------------------------------------------------------------------------------
> > Keep Your Developer Skills Current with LearnDevNow!
> > The most comprehensive online learning library for Microsoft developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> > http://p.sf.net/sfu/learndevnow-d2d
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Seconds-%3D%3E-Time.Format%28hh%3Amm%3Ass%29-tp33239641p33239740.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list