Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. [Timestamp interpolation]
Forum Updated to NodeBB v4.3 + New Features

[Timestamp interpolation]

Scheduled Pinned Locked Moved Unsolved Qt 6
4 Posts 3 Posters 463 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.
  • A Offline
    A Offline
    appdev
    wrote on last edited by
    #1

    Hello,

    I hope you're all doing well.

    I was wondering if there is a function that can interpolate timestamps ( format: yy//dd/mm hh:mn:sec).

    Or should I develop it by myself ?

    Thank you all.

    JonBJ 1 Reply Last reply
    0
    • A appdev

      Hello,

      I hope you're all doing well.

      I was wondering if there is a function that can interpolate timestamps ( format: yy//dd/mm hh:mn:sec).

      Or should I develop it by myself ?

      Thank you all.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @appdev
      "Interpolate" them into what? Is that really the word you mean?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        appdev
        wrote on last edited by appdev
        #3

        @JonB interpolate them into timestamps.
        For example: I have two timestamps as follows:
        timestamp1 = 19:43:10.000
        timestamp2 = 19:43:20.000

        I want to find the timestamps values between these two with a step of 0.1 seconds:

        timestamp1 = 19:43:10.000

        timestamp_interp= 19:43:10.100
        timestamp_interp1= 19:43:10.200
        .
        .
        .
        .
        timestamp_interpn= 19:43:19.900

        timestamp2 = 19:43:20.000
        In this case I'll have 100 intermediate timestamps between the first and the second one.

        To be more specific, is there any function in Qt that can interpolate QDateTime.
        I checked the documentation but it seems that there isn't.
        Maybe this function can do it :

        QDateTime QDateTime::addSecs(qint64 s) const
        

        ??

        Christian EhrlicherC 1 Reply Last reply
        0
        • A appdev

          @JonB interpolate them into timestamps.
          For example: I have two timestamps as follows:
          timestamp1 = 19:43:10.000
          timestamp2 = 19:43:20.000

          I want to find the timestamps values between these two with a step of 0.1 seconds:

          timestamp1 = 19:43:10.000

          timestamp_interp= 19:43:10.100
          timestamp_interp1= 19:43:10.200
          .
          .
          .
          .
          timestamp_interpn= 19:43:19.900

          timestamp2 = 19:43:20.000
          In this case I'll have 100 intermediate timestamps between the first and the second one.

          To be more specific, is there any function in Qt that can interpolate QDateTime.
          I checked the documentation but it seems that there isn't.
          Maybe this function can do it :

          QDateTime QDateTime::addSecs(qint64 s) const
          

          ??

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @appdev said in [Timestamp interpolation]:

          To be more specific, is there any function in Qt that can interpolate QDateTime.

          No but why should such a thing exist?

          Convert your strings to QDateTime and calc the difference.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          2

          • Login

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