Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
PHP
problem about date()
problem about date()
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
datactrl
New Member
Join Date:
Jul 2008
Posts:
51
#1
problem about date()
Feb 10 '10, 03:30 AM
How can the following turn out as '01/01/07'?
Code:
date('d/m/y', mktime(0,0,0,01,01,2050));
Jack
Dormilich
Recognized Expert
Expert
Join Date:
Aug 2008
Posts:
8694
#2
Feb 10 '10, 07:02 AM
32bit overflow. dates beyond Jan 19, 2038, 03:14:07 UTC require 64bit processing.
ref.
Year 2038 problem
Comment
Post
Cancel
datactrl
New Member
Join Date:
Jul 2008
Posts:
51
#3
Feb 10 '10, 08:42 AM
Thanks a lot! Would you be able to give me an example how to do it with 64bit processing.
Comment
Post
Cancel
Dormilich
Recognized Expert
Expert
Join Date:
Aug 2008
Posts:
8694
#4
Feb 10 '10, 09:09 AM
sure.
Code:
date('d/m/y', mktime(0,0,0,01,01,2050));
PS. you require a 64bit capable OS and an appropriately compiled PHP for that.
Comment
Post
Cancel
datactrl
New Member
Join Date:
Jul 2008
Posts:
51
#5
Feb 11 '10, 02:44 AM
thank you, Dormilich !
Comment
Post
Cancel
Markus
Recognized Expert
Expert
Join Date:
Jun 2007
Posts:
6092
#6
Feb 12 '10, 02:39 PM
Originally posted by
Dormilich
sure.
Code:
date('d/m/y', mktime(0,0,0,01,01,2050));
PS. you require a 64bit capable OS and an appropriately compiled PHP for that.
ROFL! Way to be sarcastic, Dormilich :P
Comment
Post
Cancel
Dormilich
Recognized Expert
Expert
Join Date:
Aug 2008
Posts:
8694
#7
Feb 13 '10, 04:21 PM
I was just answering the question, Markus …
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment