It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
VanishedOne: According to the docs, Frink might be able to do it.

https://frinklang.org/#DateTimeHandling
https://frinklang.org/fsp/frink.fsp
avatar
Lexor: I've tried to use it but I'm confused how it does work. :D

Example: how to add 40:30:20.10 and 4:03:02.01? I've tried:

# 40:30:20.10 # + # 4:03:02.01 #

Expected result: 44:33:22.11 but I've got this:

Can't parse date 40:30:20.10
#40:30:20.10#AD 2023-04-19 AM 04:03:02.001 (Wed) Mountain Daylight Time

:?
I think it expects all times to belong to a specified date.
avatar
VanishedOne: I think it expects all times to belong to a specified date.
I did some tests and:
- it seems that I can't use more than 23 hours in the first time string
- it seems that I can't use hh:mm:ss.msec format for the second time value
- it seems that it does not add more 0s in miliseconds if there are not enough digits

So the example below works but that calculator would be hard to use for me.

# 4:30:20.100 # + 4 hours + 3 minutes + 2 seconds + 10 mseconds
Post edited April 20, 2023 by Lexor
Why do you need this?

And you are probably searching for the wrong thing, what you are describing are durations, not times.
As I noticed such web calculators are commonly named "time calculator", that's why I used this term.
But, yes indeed, most of my time strings are durations.
avatar
Lexor: As I noticed such web calculators are commonly named "time calculator", that's why I used this term.
But, yes indeed, most of my time strings are durations.
Did you try the apl one? Despite the butchered link, it should open if you cope & pasta..
avatar
Lexor: As I noticed such web calculators are commonly named "time calculator", that's why I used this term.
But, yes indeed, most of my time strings are durations.
Which ones are not durations?
avatar
clarry: Did you try the apl one? Despite the butchered link, it should open if you cope & pasta..
Thanks for the reminder. :D
The link worked indeed, it looks so complicated! :o
I've never seen such programing language, it uses so many "weird" symbols.

avatar
lupineshadow: Which ones are not durations?
Sometimes (not always) I need to add the sum of durations to get the actual time of the end.
Post edited April 20, 2023 by Lexor