Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
SomeNone7115yParsing time is a well-understood domain with existing libraries for most languages. Use them, and you will probably have little trouble.
TRWTF are thos who need to reinvent that wheel every time—unfortunately, it is not well-understood by everyone. -
@SevenDeadlyBugs I'm surprised they don't have that yet.. Probably stuck in their TODO list
-
@SomeNone it's bearable when you have tools to deal with that. It's another story when you need to parse/write those times manually, in comms
-
@SomeNone time is often read by humans. Libraries don't help with that. Americans just should learn to format time like humans.
-
Hazarth95065y@netikras Im so going to work on a library that introduces "imperial types" into programming... It will probably be a javascript framework called empire.js and all arrays will start at 0 but move in steps of 5 or better known as "one array" so if you allocate an array with 5 arrays length the last index will be 20! But if you want small step you can also use arr's which are half of an array so you can step by 2.5...
It will be awesome -
@SomeNone You do realise that it won't help when dealing dates entered by Americans when working on proper date/time formats (e.g. UNIX)?
Or even when dealing with datasets with such data? -
SomeNone7115y@Berkmann18 If the input data is inconsistent, I take great pleasure in not envying your task of engineering an algorithm to guesstimate which date format was used to enter that particular date…
-
Voxera113885yAnd in dates, in c and js, years and days are the actual year and day, but month is 0-11.
That is an interesting choice ;) -
@Hazarth Don't forget the Real Array (1.25 times the array) and the Stack (4 arrays).
You think arrays starting with 1 are annoying?
HA!
How about time in a day starting with 12?
12:00, 12:45, 1:00, 1:45,...,11:45, 12:00, 12:45, 1:00, 1:45, ..., 11:45, 12:00, 12:45, 1:00 again
What if arrays started with 12? I bet Americans would love that!
arr[12]=fuck
arr[1]=this
arr[2]=shit
arr[3]=!!!
rant
just use iso format for times ffs!