Again, I'm in a GMT+1 timezone. This time, I'm surprised that the GMT+0 timezone is considered different than the GMT timezone. I'd have thought they would be just the same.
from DateTime.DateTime import DateTime a=DateTime('2000/08/20').pCommonZ() b=DateTime('2000-08-20').pCommonZ() c=DateTime('2000/08/20 GMT').pCommonZ() d=DateTime('2000/08/20 GMT+0').pCommonZ()
a 'Aug. 20, 2000 12:00 am GMT+1' b 'Aug. 20, 2000 12:00 am GMT+0' c 'Aug. 20, 2000 12:00 am GMT' d 'Aug. 20, 2000 12:00 am GMT+0'
b==c 0 b==d 1
Here, I'd expect b==c to evaluate as true. Bug or feature? -- Steve Alexander Software Engineer Cat-Box limited
There are times when I wish SMTP had a "retract email just after you've sent it" command. Please ignore this one. I was being stupid. Steve Alexander wrote:
Again, I'm in a GMT+1 timezone.
This time, I'm surprised that the GMT+0 timezone is considered different than the GMT timezone. I'd have thought they would be just the same.
from DateTime.DateTime import DateTime a=DateTime('2000/08/20').pCommonZ() b=DateTime('2000-08-20').pCommonZ() c=DateTime('2000/08/20 GMT').pCommonZ() d=DateTime('2000/08/20 GMT+0').pCommonZ()
Of course, they are different strings, and so are different. Duh. -- Steve Alexander Software Engineer Cat-Box limited
participants (1)
-
Steve Alexander