On Friday 03 June 2011, Voelker, Bernhard wrote:
> so in the night where the DST transition takes place, imagine you get
> up to go to the toilet because you drank to much coffee the evening
> before ... right in the hour where DST transition happens:
> isn't there a `date`?
> Or the other way round: how many hours do you have to left to sleep
> until 8am?
>
> The situation with date sounds like there "is an hour once per year
> when no date exists", but this is not true.
There was no "2011-05-27 02:01:00" in Germany.
I am 100% sure nobody in Germany was on toilet on at this time.
At this date if you go at 01:59:00 and come back at 03:02:00 then you
where 3 minutes on toilet but you was not at 2:01:00 because this time
simply does not exist at this day.
This works as expected:
$ export TZ="Europe/Berlin"
$ date -d "2011-03-27 02:01:00"
date: invalid date `2011-03-27 02:01:00'
$ date -d "2011-03-26 02:01:00 tomorrow"
Sun Mar 27 03:01:00 CEST 2011
cu,
Rudi