- May
- 13,399
- 190
Another thread got me fooling around. I wondered what the local time of day was exactly 183 days ago; to be more precise, exactly 183*10000000*60*60*24 FILETIME (age) units ago. I figured it'd be an hour earlier since DST wasn't in effect then. @AGEDATE doesn't say so.
So I wrote my own @AGETOTIME, which does say so.
I'm not complaining. But I am very curious about the difference because both @AGEDATE and @AGETOTIME call SystemTimeToTzSpecificLocalTime() and. as far as I can tell, you can't prevent that function from taking DST into account.
So, here I am, very curious.
Code:
v:\> do i=0 to 1 ( echo %@agedate[%@eval[%@makeage[%_date,%_time] - %i*10000000*60*60*24*183]] )
2016-08-10,23:01:50.000
2016-02-09,23:01:50.000
Code:
v:\> do i=0 to 1 ( echo %@agetotime[%@eval[%_agenow - %i*10000000*60*60*24*183]] )
2016-08-10,23:03:34
2016-02-09,22:03:34
So, here I am, very curious.