FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mktime 2-digit vs 4-digit year
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
mktime 2-digit vs 4-digit year [message #175216] Fri, 26 August 2011 19:56 Go to previous message
BKDotCom is currently offline  BKDotCom
Messages: 7
Registered: October 2010
Karma:
Junior Member
the mktime() year argument expects an integer
how does it know if I passed a 2-digit vs 4 digit value?
testing 0 <= year < 100 simply isn't good enough... what If I want to
specify years 0000 - 0099 (which should be possible on a 64-bit
system)
What keeps them from being being interpreted as 1970-2069? Or do
they?
(I don't have a 64-bit system to test on)

And if it does correctly accept the year 0000 - 0099, how could my own
code distinguish between 0000 and 00 ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Top 10 Wrong Ideas About PHP
Next Topic: fopen error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 07:59:48 GMT 2024

Total time taken to generate the page: 0.03891 seconds