On terça-feira, 12 de junho de 2012 16.26.08, Jan Kundrát wrote: > I'd like to save them into a QDataStream for further retrieval and after > loading them back, I'd love to show them both converted to the user's > local time and also in the original format, including the original time > zone information. I haven't found a way of doing this in Qt and would > like to ask for help about that.
There isn't a way. The QTimezone feature has been pending for years. > So, the questions: > > - Is there a publicly available way of doing what I want to do, ie. am I > missing something? No. > - Does Qt5 change anything in this matter? Not yet. Even QCalendaringSystem is still missing. > - Would I hit any obstacle in Qt 4.7+ if I decied to use QDateTime's > *internal* functions setUtcOffset() and utcOffset()? I see that I > shouldn't be using them, but in this case it seems to me that they > publish information which is only hardly available in other ways, so > it's *so* tempting to just have a look at them. You're entirely on your own if you touch the internals. Behaviour might change in any release. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center Intel Sweden AB - Registration Number: 556189-6027 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest