Re: [Development] Adding more Datetime classes to Qt

2019-04-11 Thread Thiago Macieira
On Wednesday, 10 April 2019 03:36:47 PDT Mark De Wit wrote: > It might be good to highlight, for instance, that MSecsSinceEpoch is not > share-able between users in different timezones unless QDateTime is > instantiated with a timespec of Qt::UTC (which is not the default). Of course it is sharabl

Re: [Development] Adding more Datetime classes to Qt

2019-04-10 Thread Edward Welbourne
Mark De Wit (10 April 2019 12:36) wrote: > It might be good to highlight, for instance, that MSecsSinceEpoch is > not share-able between users in different timezones unless QDateTime > is instantiated with a timespec of Qt::UTC (which is not the default). In what sense can't "milliseconds since ep

Re: [Development] Adding more Datetime classes to Qt

2019-04-10 Thread Mark De Wit
> From: Development On Behalf Of > Thiago Macieira > > On Tuesday, 9 April 2019 05:11:03 PDT Pouya Shahinfar wrote: > > You open a project which is developed by someone else, and he/she used > > QDateTime for holding time and date. The problem here is you as a > > newcomer to project do not know t

Re: [Development] Adding more Datetime classes to Qt

2019-04-09 Thread Thiago Macieira
On Tuesday, 9 April 2019 05:11:03 PDT Pouya Shahinfar wrote: > You open a project which is developed by someone else, and he/she used > QDateTime for holding time and date. The problem here is you as a newcomer > to project do not know the value in the class is based on UTC or local > time, etc. if

Re: [Development] Adding more Datetime classes to Qt

2019-04-09 Thread Jason H
think these classes would just encourage timezone anti-patterns.       Sent: Tuesday, April 09, 2019 at 8:11 AM From: "Pouya Shahinfar" To: development@qt-project.org Subject: [Development] Adding more Datetime classes to Qt Although QDateTime has a full set of methods for working

Re: [Development] Adding more Datetime classes to Qt

2019-04-09 Thread Konstantin Ritt
Please read the QDateTime docs accurately. Konstantin вт, 9 апр. 2019 г., 15:11 Pouya Shahinfar : > Although QDateTime has a full set of methods for working with date and > times in Qt, It could lead to misunderstanding. How? Well when you are > saving a date or time in this class you do not kn

[Development] Adding more Datetime classes to Qt

2019-04-09 Thread Pouya Shahinfar
Although QDateTime has a full set of methods for working with date and times in Qt, It could lead to misunderstanding. How? Well when you are saving a date or time in this class you do not know the time is local time, UTC time or it is for a specific timezone. Therefore, maintaining the application