BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code


@JÞB wrote:
Some are even easier.   😄

317.PNG

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. 😄

0 Kudos
Message 1191 of 2,635
(11,243 Views)

317.PNG

Easilly scaleable!


"Should be" isn't "Is" -Jay
Message 1192 of 2,635
(11,235 Views)

@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". 😄

0 Kudos
Message 1193 of 2,635
(11,229 Views)

@JÞB wrote:

317.PNG

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 1194 of 2,635
(11,228 Views)

@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!

0 Kudos
Message 1195 of 2,635
(11,223 Views)

@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!


Example_VI_BD.png

Drat Snippett tool

Fine- do it the other way then


"Should be" isn't "Is" -Jay
0 Kudos
Message 1196 of 2,635
(11,213 Views)

I am happy it is getting "easier" by the minute. Soon we'll be at my original suggestion from yesterday. :o:D

Message 1197 of 2,635
(11,204 Views)

That gets funnier by the second now that I looked at the source thread!


"Should be" isn't "Is" -Jay
Message 1198 of 2,635
(11,197 Views)

@JÞB wrote:

317.PNG

 

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.


___________________
Try to take over the world!
0 Kudos
Message 1199 of 2,635
(11,161 Views)
Yair, that is a Time to Time of Day.vi. One of the three vi I famously proposed for addition to the timing palate. It returns seconds since latest midnight. I have found it fairly useful. Can't link from mobile so follow the trail from my profile page starting with my most kudosed post.

"Should be" isn't "Is" -Jay
0 Kudos
Message 1200 of 2,635
(11,148 Views)