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

How to use QDateTime to parse milli/microsecond

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 898 Views
  • 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.
  • ttt123T Offline
    ttt123T Offline
    ttt123
    wrote on last edited by
    #1
    This post is deleted!
    kshegunovK 1 Reply Last reply
    0
    • ttt123T ttt123

      This post is deleted!

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on 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
      • Paul ColbyP Offline
        Paul ColbyP Offline
        Paul Colby
        wrote on last edited by
        #3

        Have a look at QDateTime::fromMSecsSinceEpoch

        Cheers.

        1 Reply Last reply
        0

        • Login

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