Why is an absolute time of 0 s stored as -57600?

I created a numeric control (type double) and formatted it to appear as absolute time (HH:MMS).  The value in the variable corresponding to time 00:00:00 is -57600.  (57600 corresponds exactly to 16 hours)
I can easily correct for this by subtracting -57600, but I'm curious about why the value is stored this way.
S G
Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

"I changed my code to subtract a constant absolute time of 00:00:00 (instead of -57600)."
Gotcha Warning:
I do not now about the rest of the world but here in the US there is "Day Light Savings Time" which can complicate using constants with time values.
I strongly urge you to test your code to ensure it works correctly under both DST and non-DST. This can be done by changing the system time on your machine to dates when the current DST setting isnot in effect.
Ben
PS Christian, You just have 7 more to go! I will try very hard not to post anymore than I absolutely have to.
Message Edited by Ben on 09-13-2006 02:19 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Why does Time Stamp Control not produce a Absolute Time output?

    I have used the the Time Stamp Control for manual input of measurement information. However, this control produce a time stamp in relative time which is unwanted. I thought that Time Stamps always are in Absolute Time. Is this not true? The control is very handy for time and date inputs. Is there a way of changing the output to relative time?

    I will try to be more specific:
    There is a Time Stamp Control available in the controls palette for use on the front panel. This can be used to set a variable called Time Stamp with values of time and date. It has a time and date browser which is very convenient to use and I like to use it. The time format I prefer in this case is Absolute Time which is time-zone-independent and it is the number of seconds elapsed since 12:00 a. m., Friday 1, 1904, Universal time according to LabVIEW help. However, the output from the Time Stamp Control is in Relative Time which I think is the Absolute Time compensated with Dayligth Saving Time and the local Time zone setting in your system.
    Time Stamps are always in Absolute Time I think but not in this case.
    My problem may be solved with a VI similar to "Format Date/Time String Function" but with a time stamp input and output, since this VI converts from Absolute time to Relative time. Even better is of course having a Time Stamp Control where you can select between absolute and relative time.

  • Plot data with absolute time

    Why is it that when I plot an array of data to a wavechart and changed the time (x axis) to absolute time, it always display 12/31/1903? Thanks,

    Have some patience, most people don't necessarily rush to the internet on the weekend.
    To answer your question, LV's time data is represented by the complete number of seconds that have passed since 01/01/1904 00:00 GMT. That means that the number 0, timewise, is that time. Since you are west of Greenwich, you get december 03.
    You need to set the starting time for your chart as the current time. You may also need to set the space between each 2 points you plot to the chart. You need to create a property node. Right click on the control or the terminal and select Create>>Property Node. Then, Find the X-Scale>>Offset & Multiplier properties. These set what you need. For offset you should set the current time when you start (use To DBL to convert) and for multiplier the plotting loop speed in seconds (100 ms is 0.1).
    Try to take over the world!

  • DST setting for absolute time in waveform graph

    I am using a waveform graph to display some pre-recorded data, with absolute time on the X-axis.
    If the time period of the data includes the point at which daylight savings time changes, then this comes out correct on the X-axis i.e. there is a one hour jump in time on the X scale.
    But this is only correct if the data is recorded in the same time zone with the same DST settings as the computer used to display the data. If I am viewing data that was recorded in another country, the time on the X scale can come out wrong.
    Is there any way to get the graph to ignore the DST setting, so that I don't get the one-hour jump on the X scale?

    Hi Scott,
    Thanks for your suggestions.
    I actually prefer relative time, but other users wanted absolute time so that is why I put it in.
    Most of the time it is not going to be a problem - the data is usually analysed by the same people who recorded it, so the times will always come out correct.
    But we do have collaborations with people in other countries and swap data files back and forth, so it could get connfusing if the times come out different in different countries.
    It would be nice if I could somehow tell the graph what timezone the data was recorded in, and it would display the time correct for that timezone. This would save me from having to change the timezone setting on my computer all the time. But in the mean time, that is what I'll do.
    Many thanks,
    Mark.

  • Why is the boot time on my mac pro 2010 slower than my 2010 core 2 duo 13 mbp?

    Why is the boot time on my mac pro with clean install of lion around 34 sec on my mac pro 2010 2.8 quad core, when it is only around 17 sec on my 13 mbp 2.67 core 2 duo?
    The mac pro uses around 13 seconds from i hit the power button til i hear the chime and see the grey screen.
    Is it because it uses time to find the wireless keyboard, trackpad and cinema display?
    Mac pro has 16 gb ram and 240 gb ocz agility 3 ssd, macbook pro has a intel 120 gb ssd (320 i think) and 8 gb of ram, so the mac pro has more umpf....

    Well it might take a little longer since POST (power-on self test) needs to check more memory.
    But try doing a smc and pram reset and see if that helps.

  • How do you add the absolute time and date to a spreadshee​t file?

    I am creating a spreadsheet file, and I want to write the absolute time and date to its first column. Does anybody know how to do this?
    Thank You,

    BrianL answer is still valid !
    Attached is an example file with an express vi configured to use the absolute time generated from a get time/date node.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Save with absolute time.vi ‏135 KB

  • EEM problem with "event timer absolute time"

    Hi
    I wanted to execute a EEM script at a certain time, 2015-05-04 03:00:00 GMT+2:00. So I used the "event timer absolute time" command.
    But the switch executed the script immediately. Is there something wrong with the script? Is there another way to execute a few commands at a certain time like this?
    Script:
    event manager applet CHANGE_TO_RAPID-PVST_v2
    event timer absolute time 1430701200
    action 1.0 cli command "enable"
    action 1.1 cli command "config t"
    action 2.0 cli command "spanning-tree mode rapid-pvst"
    action 2.1 cli command "end"
    action 3.0 syslog msg "Changed to Rapid-PVST by EEM script CHANGE_TO_RAPID-PVST_v2"
    Switch: WS-C3560X-24T-S
    IOS: 15.0(2)SE4
    EEM version 3.2
    #show event manager history events
    No. Job Id Proc Status Time of Event Event Type Name
    2 2 Actv success Thu Apr30 09:25:02 2015 timer absolute applet: CHANGE_TO_RAPID-PVST_v2
    I used this link to calcute the timer value. http://www.epochconverter.com/

    I honestly have never seen anyone use this timer.   You'd be better off using cron and removing the applet when it's done.
    That said, this does look like a bug.  Given the little use we've seen of this timer, it's likely a new one.  I recommend opening a TAC case so it can be tracked.

  • Create an absolute time display that can be paused and scrolled

    I have 3 waveform graphs that are scrolling by as the data is collected.  They represent past events that can be paused, scrolled back, and printed.  It represents 8 hours of data.  I do not have a time stamp associated with the data going into the graphs at this time.  I dont want to reinvent the Field Point code that is gathering the data just tweak the Host program that monitors the data (this would require flying to the customer site).  I need to have a absolute time clock that will keep up with the data that is scrollong by and pause when the graphs are paused (that is the easy part).  Here is my challenge.  I am using a property node from all three graphs.  I have the x scale-range-all elements tied together so they will all scroll together with 1 x scroll bar.  I need to be able scroll the absolute time clock with the other information.
    Any ideas?
    AUTOM8

    Hi,
    You can use the Get date/time function to get time when the data is recorded. However be advised that this time would only be close to the actual time of data acquisition.  It will not be the actual time when the data was acquired.
    As for scrolling the time display, I think yout best bet would be to tie in a  time stamp (Get date/time function ) with the Y values that you are already acquiring. Then when you scroll to a particular point in the graph, you can programmatically unbundle the waveform at that point to get the time value.
    Regards,
    Ankita

  • HT1918 Why is it every time I put my credit card number in it tells me to go here

    Why is it every time is put my credit card number in it says to come to this website

    If you are getting a message to contact iTunes Support then you can do so via this link and ask them why the message is appearing (we are fellow users here on these forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Why it takes long time to shut down after i upgrade to OS X ver 10.8.2?

    why it takes long time to shut down after i upgrade to OS X ver 10.8.2?

    Can't really say, but I see this occurring on all of my Macs since the 10.8.2 update and keep reading about it at several other Mac user boards.
    Bottom line: it's a general problem, but more of an inconvenience, than a serious problem. Probably will be solved with the next update.

  • Why it takes long time to download and udates for iphone4

    why it takes long time to download and updates for iphone4 ?

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Why do you need this if you are going to Oracle. Try
    removing this. It might be trying things out with the
    old driver and then moving to the new driver. This has nothing to do with it. (And it doesn't "try things out")
    >
    Also check your machines. They might be slow. There is
    no reason, it should take more than few hundred
    milliseconds to connect to a database on localhost as
    your case is.Possible reasons...
    - Network traffic
    - Faulty router/gateway
    - Busy server
    - Faulty network card (either end)
    - Conflict with another box

  • Why it takes long time (about 10 Min) to map the network drivers in windows 8.1?

    Why it takes long time (about 10 Min) to map the network drivers in windows 8.1? I don’t have this problem with any other operating systems (Ex: Windows 7 or XP)

    Can you perform a refresh ?
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Labview absolute time waveform chart to excel

    Hi everyone, I have a bit confusing on absolute time waveform chart. My problem is when I want to export to excel, the data duplicate nearly 30 times for each second. My project is about collect temperature from serial port and plot it in waveform chart, and I want to view history data in excel.
    Anyone can help to solve my question? I attached my vi here..
    Thank you so much..
    Attachments:
    NEW FINAL1.vi ‏96 KB
    snap.PNG ‏11 KB

    You are getting such a large number of readings because your VI has no timing control in it, if you simply add in a delay somewhere of maybe migrate to an event structure with a timeout then you can control the number of readings that are taken per second.

  • Plot absolute time

    Hi,
    I am reading data that contains date and time when the event occured and I need to plot that on xy chart in absolute time scale.
    This is my example text line...
    1/10/2007 3:51:53 PM Event Happened.....
    1/10/2007 3:52:45 PM Event 2 happened....etc...
    I searched other posts and couldn't find the right example...
    Can someone please help me with some example? I really appreciate the help...
    Thanks~!

    Hi tgif,
    Welcome to the wonderful world of log parsing.
    LV doesn't like to graph categorical data (event 1, event 2) as well as it likes to graph continuous data (1, 2, 3... ).  This means that one possible solution is to convert your categorical data to numeric data.  The problem is, for that to work, you'll need to know at least most of your events in advance.
    Be that as it may, there are some things that will make your life easier: your date/time stamp in your log should always be in the same place/format.  Your events should be easy to recognize (delimited with tabs or other unique characters, for instance).  Data corruption should be minimal (some log writers have real problems with that).
    In any event, my version of sample code is attached.
    Good luck (and <wave> to Dennis),
    Joe Z.
    Attachments:
    Parse_And_Graph.vi ‏52 KB

  • Do you know why oracle queries many times sys.props$ for BACK_END_DB

    I noticed that oracle executes the following query too many times.
    select p.value$, lengthb(p.value$)
    from
    sys.props$ p where p.name = 'BACK_END_DB'
    Oracle 9i DB
    This query is not executed into a form, report, package or procedure.
    Question is:
    Do you know why oracle queries many times sys.props$ for BACK_END_DB?
    or how can we avoid it?
    Regards
    Marcos Galeana

    Hi,
    Internal table sys.props$ contains data for some oracle parameter/variables. Oracle makes internal calls to its internal tables for many fornt end SQL statements (recursive queries). So do not worry about those internals calls.
    Regards

Maybe you are looking for

  • Titlebar in Acrobat 9 Pro disappears when window moved.

    I have a client who is using Acrobat Pro 9.0 in a Windows 7 64-bit environment.  He is also using two monitors and can move documents between them. If his PDF is open and maximized and he drags and moves it to the other monitor without placing it at

  • INCLUDING NEW VALUES  in materialized view log

    CREATE MATERIALIZED VIEW products_mv REFRESH FAST ON COMMIT AS SELECT SUM(list_price - min_price), category_id FROM product_information GROUP BY category_id; Could anybody tell me why INCLUDING NEW VALUES are necessary in materialized view log for su

  • How to open with only level-one bookmarks showing

    I know how to set my initial view so the Bookmarks pane is open. However, is there a way to set the level of bookmarks that are shown? I have created my PDF by merging a lot of smaller files, many of which were created from MS Word, so there are many

  • How long do Macbook Pros last?

    I had a Toshiba for 3 years before it started getting the "dying" symptoms. In your experience, do Macbooks get more than 2 years easily? I'm talking about everyday use for several hours a day if not always on power supply.

  • Combined TO for multiple deliveries and multiple storage types possible?

    Folks, I would need to have 1 pick TO for a shipment which has multiple deliveries and materials that are stored over several storge type. With stanrd SAP this is not posible. Any ideas wether this can be achieved through a user exit? Regards, MdZ