Jump to content

Time function weirdness on Raspberry Pi


Recommended Posts

So, I am seeing issues with the time functions.  See Snippet:

2059189634_Timefunctionproblems.png.a7aaa055439844bd2a268bea37616bf1.png

The output of Get Date/Time in Seconds shows the correct time according to the timezone set on the Raspberry Pi.  But, the Seconds to Date/Time and the Date/Time to Seconds seems to interpret the time input as UTC regardless of how the to UTC flag is set. 

I want the Cluster of time elements be in my timezone as well.  Is the only way to handle this to manually correct for the timezone offset?  I can get the timezone offset through a python script so it is possible to do as a workaround.  But these functions don't seem to work properly on the Raspberry Pi.

Link to post
Share on other sites

I'm not sure if this helps but are you sure it takes timezone from the PI?

On RT systems (but I've not worked with the Pi) front panel timestamps display as the timezone of the host system which can cause confusion in things like this.

I don't think that explains everything your seeing but might help.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By hutha
      New Toolkit : OpenCV wrapper for Raspberry Pi (LinuxRT) for LabVIEW
      Great ! learning platform student and maker for learning machine vision application with LabVIEW.
      It's working with LabVIEW Home 2014 edition and  required LINX 3.0 toolkit.
      You can run NI-VISION toolkit with Raspberry Pi board too.
      1.QwaveCameraCV is a LabVIEW Camera Driver library for Raspberry Pi 3B/3B+ (LinuxRT)
      https://github.com/QWaveSystems/QwaveCameraCV


      2.QwaveOpenCV is OpenCV wrapper functions for LabVIEW for Raspberry Pi 3B/3B+ (LinuxRT)
      https://github.com/QWaveSystems/QwaveOpenCV


      3.QwaveOpenCV Examples using OpenCV (C/C++) and NI-VISION for Raspberry Pi 3B/3B+ (LinuxRT)
      https://github.com/QWaveSystems/QwaveOpenCV-Examples


       
    • By noman AHMED
      I am making a project in which i will be taking input from raspberry pi then transfroming single input into string of differnet inputs like voltage ,current, frequency. so how can i transform input that i will be taking from single pin of raspberrypi to voltage,current and frequency
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.