You are not logged in.
I'm looking to get an epoch date that's adapted for the set time zone. How can I do this in a clean way?
Offline
Offline
This doesn't affect time().
Offline
MinimalBoot wrote:This doesn't affect time().
Are you sure about it ?
date_default_timezone_set() sets the default timezone used by all date/time functions.
Offline
The Unix epoch has no notion of timezone, so time() will not be affected by any timezone fiddling.
Offline