By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,271 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,271 IT Pros & Developers. It's quick & easy.

problem about date()

P: 51
How can the following turn out as '01/01/07'?

Expand|Select|Wrap|Line Numbers
  1. date('d/m/y', mktime(0,0,0,01,01,2050));
Jack
Feb 10 '10 #1
Share this Question
Share on Google+
6 Replies


Dormilich
Expert Mod 5K+
P: 8,639
32bit overflow. dates beyond Jan 19, 2038, 03:14:07 UTC require 64bit processing.

ref. Year 2038 problem
Feb 10 '10 #2

P: 51
Thanks a lot! Would you be able to give me an example how to do it with 64bit processing.
Feb 10 '10 #3

Dormilich
Expert Mod 5K+
P: 8,639
sure.
Expand|Select|Wrap|Line Numbers
  1. 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.
Feb 10 '10 #4

P: 51
thank you, Dormilich !
Feb 11 '10 #5

Markus
Expert 5K+
P: 6,050
@Dormilich
ROFL! Way to be sarcastic, Dormilich :P
Feb 12 '10 #6

Dormilich
Expert Mod 5K+
P: 8,639
I was just answering the question, Markus …
Feb 13 '10 #7

Post your reply

Sign in to post your reply or Sign up for a free account.