datetime arithmatics
samjesse:
Hi
How can I get the server datetime for n days ago at 1am?
Thanks
now=TimeCurrent();
TimeNdaysAgoAt1AM=now - ((TimeHour(now)*60+TimeMinute(now))*60+TimeSeconds(now)) + 1*60*60 - n*24*60*60;
Hi
How can I get the server datetime for n days ago at 1am?
Thanks
now=TimeCurrent();
TimeNdaysAgoAt1AM=now - ((TimeHour(now)*60+TimeMinute(now))*60+TimeSeconds(now)) + 1*60*60 - n*24*60*60;
You agree to website policy and terms of use
Hi
How can I get the server datetime for n days ago at 1am?
Thanks