Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use QDateTime to parse milli/microsecond
Forum Updated to NodeBB v4.3 + New Features

How to use QDateTime to parse milli/microsecond

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 904 Views 2 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.
  • T Offline
    T Offline
    ttt123
    wrote on 26 May 2016, 04:35 last edited by
    #1
    This post is deleted!
    K 1 Reply Last reply 26 May 2016, 04:45
    0
    • T ttt123
      26 May 2016, 04:35

      This post is deleted!

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 26 May 2016, 04:45 last edited by kshegunov
      #2

      @ttt123
      Hello,

      s / 1000000
      

      This is wrong, but you should think carefully why. Run it through the debugger and see what you get from that expression.

      PS.
      To give you a hint, think what the result of 12 / 10 would be.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Paul Colby
        wrote on 26 May 2016, 05:02 last edited by
        #3

        Have a look at QDateTime::fromMSecsSinceEpoch

        Cheers.

        1 Reply Last reply
        0

        1/3

        26 May 2016, 04:35

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved