Jump to content

timestamp based on day/week/month


chaking

Recommended Posts

I'm working on daylight savings time around the world and the database I'm drawing the information from lists the start of daylight savings time with the month, day, week, hour, minute and second it starts.

 

Initially I thought I could throw that information into mktime() and get the timestamp, however once I started doing it I realized the `week` part screws it all up.

 

mktime is setup as mktime (hour, minute, seconds, month, day, year)

 

So you can't add in the week of the month.  So if I have the following information, anyone know how I can get a timestamp?:

 

Month: 11

Day: 0

Week: 1

Hour: 2

Minute: 0

Seconds: 0

Link to comment
https://forums.phpfreaks.com/topic/206464-timestamp-based-on-dayweekmonth/
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.