CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: UTC Time format

  1. #1
    Join Date
    May 2001
    Posts
    46

    UTC Time format

    Does anyone know how to convert a date/time in the UTC (Universal Coordinated Time) format?

    Any help would be REALLY apreciated.

    Thanks.



  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: UTC Time format

    Go to
    http://search.microsoft.com/us/SearchMS.asp
    and search on "UTC Time zone Conversion" (without the quotes of course). You should get 17 hits that discuss this problem

    John G

  3. #3
    Join Date
    May 2001
    Posts
    46

    Re: UTC Time format

    Thanks for your reply, I already checked that page, and could get a little help.

    What I need to do is develop an algorithm to convert UTC format to date format.

    Is something like this:

    878159351 represents the date in number of seconds elapsed since 1/1/1970 12:01 AM, so the date would be 10/29/1997 1:09:11 PM.

    I checked Windows API functions and it uses a diferent format (seconds elapsed since 1/1/1601).

    If anyone knows of an existing function or pointers on how to achieve this I'd really apreciate it.

    Thanks.

    Alejandro.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured