Calculating and converting date
Posted: Sun May 15, 2016 5:05 pm
Hi there, I'm new to this forum and my name is Joran (from Gothenburg, Sweden)
Slowly but steady, learning more and more about LC, a great coding language. To name it "Live Code" seems symbolically totally wright.
Well, I have a question in my pursuit to build a small app that calculates dates, its a kind of simple Time travel gadget maybe . . .
If I think like this:
Input a "year" into a field //ex. 1956 // and into another field a "month" // ex. 4 //and the last field a "day" // ex. 17 //
How do I convert these fields above // year, month, day // into seconds
The Idea for this little app is to do "Time jumps" forward and backward in time, based on user input.
from my understanding, which is quit limited so far, I would be best of to convert a users input to seconds
and base calculations on that info. And after that convert the calculations into "dateitems" for later graphic presentation
of the results.
I'd would be very pleased to receive some guiding help . . .
// Joran
Slowly but steady, learning more and more about LC, a great coding language. To name it "Live Code" seems symbolically totally wright.
Well, I have a question in my pursuit to build a small app that calculates dates, its a kind of simple Time travel gadget maybe . . .
If I think like this:
Input a "year" into a field //ex. 1956 // and into another field a "month" // ex. 4 //and the last field a "day" // ex. 17 //
How do I convert these fields above // year, month, day // into seconds
The Idea for this little app is to do "Time jumps" forward and backward in time, based on user input.
from my understanding, which is quit limited so far, I would be best of to convert a users input to seconds
and base calculations on that info. And after that convert the calculations into "dateitems" for later graphic presentation
of the results.
I'd would be very pleased to receive some guiding help . . .
// Joran