Jump to content

Getting time()


ayok

Recommended Posts

Have a look at strptime(). Doesn't work on Windows platforms. You should be able to feed some of the returned data to strtotime(), and get your timestamp.

 

How is the date string generated? I know it may be a bit late now, but you should really store a timestamp or a date in standard format (2009-01-07) instead of the local date string, and then generate the local string when needed, with strftime("%e %B %G", timestamp).

Link to comment
https://forums.phpfreaks.com/topic/139836-getting-time/#findComment-731635
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.