[Gambas-user] Unix Date conversion

frame down under framedownunder at ...626...
Mon Jul 24 16:37:07 CEST 2006


indeed: me reading up on wikipedia revealed:

http://en.wikipedia.org/wiki/Leap_year#Rules_for_determining_when_to_have_a_leap_year

thx!


2006/7/24, Pablo Vera <pvera at ...729...>:
> Sorry to disagree, but leap years are years that can be divided evenly
> by 4, except century years unless they can be divided evenly by 400.
>
> The year 2000 WAS a leap year.
>
> 1600 - yes
> 1700, 1800, 1900 - no
> 2000 - yes
> 2100, 2200, 2300 - no
> 2400 - yes
> ...
>
> Pablo
> _______________________________________
>
> frame down under wrote:
> > benoit,
> >
> > Leap years are years that are divisible by 4, except if they are
> > divisible by 400.
> >
> > The year 2000 was not a leap year.
> >
> > Thnx
> >
> > 2006/7/24, Benoit Minisini <gambas at ...1...>:
> >> On Monday 24 July 2006 14:37, MrBiTs wrote:
> >>> /*
> >>>     That is correct. # of seconds since 1/1/1970.
> >>> */
> >>>
> >>> Number of seconds since 1/1/1970 00:00:00 GMT.
> >>>
> >>> In perl, for example, we have a very simple line to convert Unix Timestamp
> >>> into human-readable format:
> >>>
> >>> $ perl -e "print scalar localtime(0);"
> >>> Wed Dec 31 21:00:00 1969
> >>>
> >>> As I told, this is GMT based. So, here in Brazil we  have GMT-3, then
> >>> that's correct.
> >>>
> >>> CheerS
> >>>
> >>>
> >> I have read the man page...
> >>
> >> Actually this is *not* the true number of seconds before 1/1/1970, because:
> >> - All years divisible by four are considered leap years.
> >> - Sometimes a leap second is added to some years, and it is ignored.
> >>
> >> So maybe a dedicated function is needed...
> >>
> >> --
> >> Benoit Minisini
> >>
> >> -------------------------------------------------------------------------
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> >> opinions on IT & business topics through brief surveys -- and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> Gambas-user mailing list
> >> Gambas-user at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys -- and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> >
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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