Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to Call OS Time In Raspberry pi
Forum Updated to NodeBB v4.3 + New Features

How to Call OS Time In Raspberry pi

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 1.1k Views 3 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
    vivekyuvan
    wrote on last edited by
    #1

    Hi Friends

    I want to Call OS Time in Raspberry Pi. And count the total on time hours display it to ui label

    Any code example and snippet will be helpful.

    Thanks In Advance.

    Best Regards
    Vivek Yuvan

    1 Reply Last reply
    0
    • T Offline
      T Offline
      titan83
      wrote on last edited by
      #2

      Sorry, I'm very dark probably, but I don't understand what means "Call OS Time".

      V 1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        But you are using Qt, right? Then just use QDateTime.

        (Z(:^

        V 1 Reply Last reply
        2
        • T titan83

          Sorry, I'm very dark probably, but I don't understand what means "Call OS Time".

          V Offline
          V Offline
          vivekyuvan
          wrote on last edited by
          #4

          @titan83 I am talking about Operating System time (OS). current time of Raspberry pi.

          1 Reply Last reply
          0
          • sierdzioS sierdzio

            But you are using Qt, right? Then just use QDateTime.

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

            @sierdzio thanks for your reply. I will try this QDateTime

            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