S
Sandman
I am experiencing oddities with my system.
How come this doesn't work:
select unix_timestamp("1925-01-01");
-> 0
But this does:
perl -e 'use Date::Manip; print UnixDate("1925-01-01", "%s");'
-> -1420074000
Don't they both use the systems built in support for date integer? As it is, I
can't make PHP or MySQL convert to unixtime earlier than 1970 which is due to
my system (linux redhat 8) not supporting it in some way. but why does
Date::Manip do it?
Actually, now when I test it, this also work:
perl -e 'use Date::Manip; print UnixDate("1800-01-01", "%s");'
-> -5364666000
Which most certainly is before any unixtime epoch regardless of os support...
Hmmm, what to do, what to do.
How come this doesn't work:
select unix_timestamp("1925-01-01");
-> 0
But this does:
perl -e 'use Date::Manip; print UnixDate("1925-01-01", "%s");'
-> -1420074000
Don't they both use the systems built in support for date integer? As it is, I
can't make PHP or MySQL convert to unixtime earlier than 1970 which is due to
my system (linux redhat 8) not supporting it in some way. but why does
Date::Manip do it?
Actually, now when I test it, this also work:
perl -e 'use Date::Manip; print UnixDate("1800-01-01", "%s");'
-> -5364666000
Which most certainly is before any unixtime epoch regardless of os support...
Hmmm, what to do, what to do.