04-03-2008 06:29 AM
04-03-2008 10:25 AM - edited 04-03-2008 10:26 AM
04-03-2008 11:24 PM
It is executing wrongly. Please check at the index 480. Whatever he has stated is true.
The timestamp that has to come as AM, comes as PM only. This happens even after doing nothing in the AM case.
Can somebody confirm this behaviour or suggest a workaround?
04-03-2008 11:43 PM
04-04-2008 09:12 AM
04-04-2008 10:48 AM
04-04-2008 11:08 AM
I'm on 8.2 so can't read the vi's, but from the comments it seems that there's an attempt to parse the time string, them pass it to time/date to seconds.
How about simply using 'scan from string', with "%<%m/%d/%Y %I:%M:%S %p>T" as the format string. The output is a time stamp. NI have already written the parsers for you!
Rod.
04-04-2008 01:04 PM - edited 04-04-2008 01:04 PM
04-08-2008 12:22 AM
Rod wrote:
How about simply using 'scan from string', with "%<%m/%d/%Y %I:%M:%S %p>T" as the format string. The output is a time stamp. NI have already written the parsers for you!
Excellent answer! Problem solved.
BTW, can you explain me what are those format specifiers %I & %p stand for? I cannot see them in the LV help.
04-08-2008 12:59 AM
| <%p> | AM or PM flag |
| <%I> | hour (12-hour clock) (01–12) |