detect if date/time is daylight savings time
Posted on 2004-03-31
Given the following datetime string "2004-03-30 13:09:28" I need to detect if it is PST or PDT?
Dalight Savings time:
Starts: First Sunday in April at 2 am local time
Ends: Last Sunday in October at 2 am local time
What I need to do is append PST or PDT accordingly.