Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. time conversion

time conversion

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vineeshV
    wrote on last edited by
    #1

    how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss

    vineesh

    _ N M 3 Replies Last reply
    0
    • V vineeshV

      how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss

      vineesh

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Use the localtime function to convert time_t to struct tm. Then use string formatting to get the required format.

      «_Superman_»

      1 Reply Last reply
      0
      • V vineeshV

        how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss

        vineesh

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        Check the sample code at the end of this [^]documentation.

        nave [OpenedFileFinder] [My Blog]

        V 1 Reply Last reply
        0
        • V vineeshV

          how to convert time_t variable to formatted date eg The long value [12345678900] to dd/mm/yyyy hh:ss

          vineesh

          M Offline
          M Offline
          Madhu Nair 0
          wrote on last edited by
          #4

          Use the C runtime function strftime or _tcsftime for details, visit the MSDN page http://msdn.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx[^]

          1 Reply Last reply
          0
          • N Naveen

            Check the sample code at the end of this [^]documentation.

            nave [OpenedFileFinder] [My Blog]

            V Offline
            V Offline
            vineeshV
            wrote on last edited by
            #5

            thanks naveen

            vineesh

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups