PDA

View Full Version : displaying system time



aj2903
27th November 2008, 09:54
I'm using qt on linux.
I want to display system time on label. How can it be done.

high_flyer
27th November 2008, 10:25
have a look at QTime

afflictedd2
1st December 2008, 17:58
Hi,

I have a similar question, and looked at QTime, how can I get the time zone.

Thanks,

Ted.

rexi
1st December 2008, 22:19
As far as I know there is no Qt-specific way to get the time zone. There is, however, a lot of support for dealing with dates/times, independent of time zones.

So, do you ask because you need a specific task involving dates or times done, or do you really just need to know what the current time zone is? In the first case, Qt might offer what you need. In the second case, I'm afraid that at least I don't know of a platform-independet way of determining that.

aamer4yu
2nd December 2008, 06:32
May be QLocale might be of some use to you :)