--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
Well, and looking at that `incrementDate` function I see now that it will give wrong result if timezone would shift at wrong direction by last day of month. Silly me.But really - that should be easier. Python have both date and datetime...
I have briefly tried to use utc datetimes but apparently it did not help me in my scenario. As I wrote I get my lower and upper bounds from external source as strings representing dates. So I can not simply use named utc constructor. I create date by static method fromString. I do not see how to command Datetime to create utc date from string. But if I convert value after creation by toUtc method I apparently get same behaviour.
Hi, Alan.
I have briefly tried to use utc datetimes but apparently it did not help me in my scenario. As I wrote I get my lower and upper bounds from external source as strings representing dates. So I can not simply use named utc constructor. I create date by static method fromString. I do not see how to command Datetime to create utc date from string. But if I convert value after creation by toUtc method I apparently get same behaviour.
Datetime mydate = DateTime.parse(dateStr).toUtc();
It was not working and apparently should not work. Thank you for help, I will use your advice.