"Translate" current system time into seconds.

I actually have two doubts/questions:
1- I need to create a timer that translates into seconds the current time of the system (i.e. 10:00  = 36,000s and 00:00 a.m. = 0 s) , I've tried this by using the format date/time string function but I can't separate the time from the date, anyone has any ideas on how to do this?
2- Also, this is the first time I'm going to be using a daq-6008 on a separate computer which doesn't have LABView installed, for this I'm supossing all I need to do is install the driver on this other computer and with the .exe file of the program I'm creating should be enough right? In the sense that the daq will still work apropiateley without the need of installing LABView.
Thanks for you help!
Solved!
Go to Solution.

magb321 wrote:
I actually have two doubts/questions:
1- I need to create a timer that translates into seconds the current time of the system (i.e. 10:00  = 36,000s and 00:00 a.m. = 0 s) , I've tried this by using the format date/time string function but I can't separate the time from the date, anyone has any ideas on how to do this?
So your time is relative to midnight? I'm assuming you reset once you pass midnight? If so, you can use the Get Date/Time In Seconds and the Seconds to Date/Time to get a cluster that you can easily peel off:
2- Also, this is the first time I'm going to be using a daq-6008 on a separate computer which doesn't have LABView installed, for this I'm supossing all I need to do is install the driver on this other computer and with the .exe file of the program I'm creating should be enough right? In the sense that the daq will still work apropiateley without the need of installing LABView.
The target computer will also need the LabVIEW Run-Time Engine (to run your app) and DAQmx (driver for the 6008) installed.
Message Edited by smercurio_fc on 05-18-2010 11:34 PM
Attachments:
time.PNG ‏2 KB

Similar Messages

  • How to fetch current system time in milliseconds using AppleScript?

    I need to write the actual systemtime hh:mm:ss.msc into a field of FileMaker by using AppleScript (as FileMaker does still not support TimeStamps down to milli seconds) - now, how to realize that?
    Any help is welcome - Thanx

    Hi Mathur,
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Mathur no need to write UDF for that..
    Use standard function Current date-------> In that (Target Format) u have to specify the time i.e: HHmmss
    Thats it..... Noe use this function as u like...
    Satya Kumar

  • How to compare the current system time with two timing?

    want to get the current system time and compare with the two different timing example startwindow time as 2:00:00AM and endWindowTime as 6:00:00AM. if my current system time falls between these window i have to execute my rest of the code.
    my below code works for fine for JAVA 1.6 version when i do the same code with JAVA 1.4 i am getting different date and time
    String starTime=(String) NightlyvendorStatus[0].getPropertyValue("startTime");
      String endTime=(String) NightlyvendorStatus[0].getPropertyValue("endTime");
      Date windowStarttime = new SimpleDateFormat("HH:mm:ss").parse(starTime);
      Date windowEndtime = new SimpleDateFormat("HH:mm:ss").parse(endTime);
      Date systemdate = new Date();
      SimpleDateFormat parser = new SimpleDateFormat("HH:mm:ss");
      String systemTime=parser.format(systemdate);
      Date currentTime = new SimpleDateFormat("HH:mm:ss").parse(systemTime);
      if (currentTime.after(windowStarttime) && currentTime.before(windowEndtime)){
    --- rest logic here---}
    the output from JAVA 1.4 IS Thu Jan 01 02:00:00 GMT 1970 Thu Jan 01 06:00:00 GMT 1970 Thu Jan 01 03:23:00 GMT 1970
    HOW TO DO this logic..

    Hi,
    You can try converting dates into timestamp and compare just like as comparing two integers variables.
    Regards,
    Anshul

  • Convert system time into User local time.

    Hi,
    How to convert System time into User Local time.
    Are there any FMs available.
    Regards,
    Kiran

    hi,
    There is just one simple funda behind the Date and time logic in SAP.
    -> It is absolutely useless to store Date and time directly in DB. Why ?
    Because 00:00 a.m in London could mean 05:30 in India !! So If I (in India) store a Date 1st Feb 2008 , 10:00 a.m .. This time for a person in London could be invalid.. because he is behind your time zone..
    So the solution is to store the date/times in Timestamps format. Taking the above example.. 1st Feb 2008, 10:00 a.m (in India) will be stored as 20080201043000.
    This time if seen in German Time zone will look as : 1st Feb 2008, 05:30 a.m.
    Simple right
    -> In India we store date as DD.MM.YYYY while in other countries they store it as MM.DD.YYYY.
    The separator could be . or - or / .
    The date format is user dependent. I might prefer to store it as DD.MM.YYYY and you might want to store it as MM-DD-YYYY.
    System does not bother what your format is. It always stores in YYYYMMDD (8 Char)
    On screens if you want to display Date then it must always be shown in that users format who is seeing it. How to get this done ?
    DATA : lv_date(10) type c.
    write sy-datum into lv_date.
    So in LV_DATE variable the date will be stores in the users format.
    Simple right
    There are function modules that do the same. But normally we should avoid use of FM to make code simpler, short and easy... no complications at all ..
    You can use system variables sy-datlo (Local Date for Current User) and sy-timlo ( Local Time of Current User ).
    You can also use GET TIME statement.
    reward if useful,
    preet

  • How to pass Current System time in the target field?

    Hi Experts
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Thanks
    Aprajita

    Hi Mathur,
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Mathur no need to write UDF for that..
    Use standard function Current date-------> In that (Target Format) u have to specify the time i.e: HHmmss
    Thats it..... Noe use this function as u like...
    Satya Kumar

  • How cost;ly it is to get the current system time

    I am using this call "System.currentTimeMillis()" to get the current system time. I need to now how costly it is to get the current system time.

    Why don't you time it -:) Run it 10000 times and print the first and last result. The difference is the time it took.

  • How to filter list items by current system time in search result wp or result source SharePoint 2013

    I want to display Items with PressDate less than or equal
    to current time in my search result webpart in SharePoint 2013.
    It is working fine for current date but not considering current time.
    {searchTerms} ContentType="ABC" PressDateTime<{Today+1}
    Above query not supporting for Now(), due to that it
    is showing items which are less than or equal to current (today's) date.
    How can I compare time with current system Time?..Thanks in advance.
    Regards, --NP

    You can achieve the same by using a Current Date Offset in a CAML Query to Filter List Items.
    Have below links for your reference.
    Sharepoint Tips And Tricks
    CAML Query to Date prior to 30 days from today
    Thanks.

  • Howto Current System Time in the format YYYYMMDDHHMMSS

    Hi, Is there a way to calculate current system time in java so the output will be in the format YYYYMMDDHHMMSS?

    Create a Date object from the system time:
    long now = System.currentTimeMillis();
    java.util.Date date = new java.util.Date(now);
    System.out.println(date);
    You can then use the SimpleDateFormat class to format the Date however you want.

  • Current System Time in Cold Fusion

    Hi,
    I am getting the current system Date as below:
    <cfset todaydate = CreateODBCDate(now())/>
    How to get current system time in coldfusion in a similar way
    and what is the syntax for it.
    <cfset currenttime = XXXXXXXXXXX/> which should be of
    24 hrs time format
    Could anyone please help me on this
    Thanks,
    Cold Fusion Beginner

    <cfset currenttime = XXXXXXXXXXX/> which should be of
    24 hrs time format
    <cfset currenttime = now()>
    That will be a date-time object of the current time. If you
    would like
    that formated in a standard 24 hour format:
    <cfset currenttime = timeFormat(now(), "HH:mm:ss")>
    The 'HH' time format mask is for hours in the 24 hour clock;
    'hh' will
    give you hours in a 12 hour format.

  • CALCULATE 6 MINS FROM THE CURRENT SYSTEM TIME....................?

    Hi
    I want to subtract few mins (say 5 min , 10 min ,15 mins , max to 55 mins) from the current system time,
    ex-current time 00:40:00
    Subtract 5 mins(means 5 mins backward)
    Final time 00:35:00
    ex-current time 01:20:00
    Subtract 30 mins(means 30 mins backward)
    Final time 00:50:00
    Pls help me with this with a appropriate logic or FM..
    Thanks a lot in advance
    Basic Date and Time questions are not allowed. They have been answered umpteen times. Please search for them.
    Edited by: kishan P on Sep 1, 2010 12:05 PM
    Edited by: Matt on Sep 1, 2010 9:01 AM - And please do not post in ALL CAPITALS

    May be you can do something like this!
    data: l_time like sy-uzeit.
    data: l_time1 like sy-uzeit value '06'. "6 hrs to be deducted from system time
    move sy-uzeit to l_time. "this is system time
    "write l_time.
    "write:/ l_time1.
    SUBTRACT l_time1 from l_time.
    write:/ l_time. "This is 6 hrs behind system time
    Rajasekhar

  • CALCULATE 6 HOURS FROM THE CURRENT SYSTEM TIME....................?

    hi
    good
    i want to subtract 6 hours from the current system time,
    ex-current time 17.07
    Subtract 6 hours(means 6 hours backward)
    Final time 11.07
    Pls help me with this with a appropriate logic.
    Thanks a lot in advance
    mrutyun^

    May be you can do something like this!
    data: l_time like sy-uzeit.
    data: l_time1 like sy-uzeit value '06'. "6 hrs to be deducted from system time
    move sy-uzeit to l_time. "this is system time
    "write l_time.
    "write:/ l_time1.
    SUBTRACT l_time1 from l_time.
    write:/ l_time. "This is 6 hrs behind system time
    Rajasekhar

  • What SAP function is used to get current system time?

    Hello All:
        I heard there is an SAP function to get system time. It was "gettime" or something! Could anyone please tell me what the function is?
    Thanks.
    Mithun

    Like this:
    DATA tt TYPE uzeit.
    GET TIME FIELD tt.
    This will reset sy-uzeit as well.
    Hmm... it appears I am mistaken. SY-UZEIT always seems to have the current time. I think this is a change from earlier releases.
    Rob
    Message was edited by:
            Rob Burbank

  • Re: incrementing the current system time with 30 minutes

    hi
    in JSPinner i need to display the time but that time should be 30 min greater than system time
    is that possible
    reg
    vino

    1. Create a GregorianCalendar instance
    2. Use roll() to add 30 minutes
    3. Use getTime() to convert to a Date instance

  • How to show two different plots with current system time and date on waveform chart

    I am using  one waveform chart to display the more than one value continiously. The data  are comming properly but i am not getting my system (pc) time and date on x axis. It is showing default date and time (i.e.01/01/1904 5:30:45). Please  give me suggestions to display the real time and date on x axis of waveform chart. 

    How does your data look like? Do you graph waveform data types, dynamic data, or plain arrays/clustes? In the case of plain arrays, you need to set x0 to the absolute start time of your data, e.g. with a property node.
    I you would attach your code (or an image) we could offer more specific advice. There are too many possibilities.
    LabVIEW Champion . Do more with less code and in less time .

  • How to get system time from cRIO?

    Hello,
    I have an NI cRIO-9076 chassis with an NI-9467 GPS module and an NI-9234 module.
    I've downloaded the FPGA Timekeeper application which synchronises the FPGA clock to the 1PPS GPS, this works well.  What I want to do is create a trigger that at a pre-defined HH:MMS the system will start to acquire and log data from the Accelerometers connected to the NI-9234 module.
    I have added the controls for the entry of the HH:MMS and calculated the time in seconds.  I would like to compare the system clock once it is locked to the entered timestamp and then trigger.
    As I only have a value that represents seconds in the day I need to calculate the offset from EPOCH to compare against the GPS time reference.  I have read that the NI system clock runs from 01/01/1904 instead of the EPOCH 01/01/1970.
    The question is how do I get the current system time so that I can compare it against the entered time?  I only need seconds in the day = (HH * 3600) + (MM * 60) + (SS)
    Thank you,
    Kind Regards,
    Simon

    You should use the Get Date/Time in Seconds VI which will return a timestamp. You can then format this timestamp using the Format Date/Time String to give you exactly the time format that you need. Then you can extract the numbers you need and do your math.
    www.movimed.com - Custom Imaging Solutions
    Attachments:
    Get Seconds in Day.vi ‏9 KB

Maybe you are looking for

  • Follow-Up material items in MRP4 View

    Hi All, In MRP4 view, in discontinued part, if we set follow-up material, MRP will trigger requests for the follow –up material if the stock of existing material is zero. Now there is a requirement, so that even though follow-up material is updated,

  • PostNetText hits the server twice for a single call

    I'm having some serious problems with a Shockwave bug regarding the behavior of postNetText. In a Shockwave test movie I've created, I'm calling an in-house web service as follows: on makeRequest theRequestURL   gNetID = postNetText(theRequestURL, me

  • IMac 24" + 2 daisy-chained bus-powered external hard disks: possible?

    Hello everyone, I have a 24" iMac and two G-Drive Mini external hard disks. Currently, one of the disks is connected to the FW 800 port, and the other to a USB port. Each is powered by it's respective bus. I would love to have the use of the USB port

  • How to set input "Description" to mandatory?

    Hi all, How to set input "description", from infrastructure blueprint request form, to mandatory? Thanks in advance.

  • Performance on Sybase Gateway

    Our case is when a row update on Oracle server. A trigger will fire and update a row on Sybase using gateway. We do a test, for first 1000 records, the speed is acceptable, but when over 1000, the speed drop and need 1 min to complete update one reco