11-09-2012 11:34 AM - edited 11-09-2012 11:35 AM
@JÞB wrote:
Some are even easier. 😄
Note: the timestamp to time record can actually take a dbl but the number to timestamp function is just soooooo pretty
That would wrap the hours above 24! A number of 123456789 would yield 13 hours in your code, probably "slightly" too low. 😄
11-09-2012 11:48 AM
Easilly scaleable!
11-09-2012 11:55 AM - edited 11-09-2012 11:55 AM
@JÞB wrote:
Easilly scaleable!
Interesting slip ....
Now it gives 8005 hours instead of the expected 34293 when starting with 123456789.
O course you could now also handle the years, but I thought the original idea was based on "easier". 😄
11-09-2012 11:55 AM
@JÞB wrote:
Easilly scaleable!
And now you need to include the number of years! And we are quickly getting more complicated than the simple quotient and remainder. But the idea is a good one, Jeff.
11-09-2012 12:00 PM - edited 11-09-2012 12:07 PM
@crossrulz wrote:
But the idea is a good one, Jeff.
No, it will not work in general. For example if you do the "day of year correction" and use an input of 123, the result would be 8776:2:3. Way off!
11-09-2012 12:13 PM - edited 11-09-2012 12:19 PM
@altenbach wrote:
@crossrulz wrote:
But the idea is a good one, Jeff.
No, it will not work in general. For example if you do the "day of year correction" and use an input of 123, the result would be 8776:2:3. Way off!
Drat Snippett tool
Fine- do it the other way then
11-09-2012 12:42 PM
I am happy it is getting "easier" by the minute. Soon we'll be at my original suggestion from yesterday. :o:D
11-09-2012 12:47 PM
That gets funnier by the second now that I looked at the source thread!
11-11-2012 01:07 AM - edited 11-11-2012 01:11 AM
@JÞB wrote:
Note: the timestamp to time record can actually take a dbl but the number to timestamp function is just soooooo pretty
Just note that no one else has your subVI, thus making the snippet less practical for others. 😉
Also, for those who don't know, this wouldn't be relevant in this case, but To DBL can be used to convert a timestamp to the number of seconds since 1904.
11-11-2012 09:32 AM