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. Running Time and Date in SQLITE
Forum Updated to NodeBB v4.3 + New Features

Running Time and Date in SQLITE

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 680 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.
  • D Offline
    D Offline
    drich
    wrote on 16 Jul 2017, 00:08 last edited by
    #1

    Good day!
    I am making a monitoring system and I need to make my date and time running in the database.

    here is my code.

    date = str(datetime.datetime.fromtimestamp(k).strftime('%b %d, %Y  %I:%M:%S %p'))
    ``
    
    Thanks in advance! :)
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Jul 2017, 20:53 last edited by
      #2

      Hi,

      What is your question exactly ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • V Offline
        V Offline
        VRonin
        wrote on 17 Jul 2017, 07:30 last edited by
        #3

        Even though there is no question I'll go ahead and guess date.toString(Qt::ISODate) is what you need.

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        4

        1/3

        16 Jul 2017, 00:08

        • 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