02-14-2007 03:54 PM
02-14-2007 03:58 PM
02-15-2007 11:20 AM
02-15-2007 12:10 PM
The system I'm on doesn't have LV, so can't show you a VI, however the following should help...
Use 'date/time rec to seconds' to get your start and end dates in seconds (U32) since the epoch. You only need set D/M/Y fields - leave the rest at zero.
Now do the same with your date from the txt file. Use scan from string as needed to get D, M, and Y as integers.
Now it's just a straight integer comparison.
The year has to be in the range of date/time rec (1904 - 2040)
Rod.
02-15-2007 01:22 PM
02-15-2007 04:00 PM
02-15-2007 04:01 PM
02-15-2007 04:58 PM
02-16-2007 05:29 AM
The perils of being used to an older version of LabVIEW!
According to the update notes for Rev 7.0 http://www.ni.com/pdf/manuals/321780e.pdf, (page 36) the change from U32 to time stamp was made to allow time to be stored at geater precision and range of values. Time stamp is a 128 bit signed value, with conversions available to maintain compatibilty. The bottom 64 bits represent fractions os a second. Year can now be on the range 1600 to 3000. Dates before 1904 have a negative time stamp.
Rod.
.
02-16-2007 09:46 AM