Results 1 to 7 of 7

Thread: inside localtime() - wondering how to easily extract timezone difference

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: inside localtime() - wondering how to easily extract timezone difference

    Quote Originally Posted by jamadagni
    Well ya I forgot to mention that I have read through tzset - but it appears to be a UNIX-specific thing. How would then the localtime() function compile/work on DOS/Windows?
    Does it matter? The most important part is that it works (if it works, because localtime() is not an ANSI C function, so I guess non-posix Windows may not have it), right? Let's leave libc programming to libc programmers.

  2. #2
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: inside localtime() - wondering how to easily extract timezone difference

    http://cygwin.com/cygwin-api/cygwin-api.html (but be warned the water is getting deeper )

  3. #3
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    10
    Thanked 1 Time in 1 Post

    Default Re: inside localtime() - wondering how to easily extract timezone difference

    Quote Originally Posted by wysota
    localtime() is not an ANSI C function
    Of course it's an ANSI C function - it is listed and described by K&R in their ANSI C book.
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: inside localtime() - wondering how to easily extract timezone difference

    "man localtime" gives this as compliance standards:

    SVID 3, POSIX, BSD 4.3, ISO 9899

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.