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
-
C0D4669025yπ€¨ I'm not sure if this is worth while but congrats on finding the domain.
{
"status": "success",
"message": "here is your epoch/unix timestamp",
"epoch": 1565150700
}
Seems to work, but do I utilise an API over strtotime() π€ -
Wombat102445ySry, but can you provide a usecase for this api? Why shouldn't I use PHPs built-in strtotime? π
-
That moment when everyone starts using your API instead of the function itself.
-
stop68025yhttps://strtoti.me//...
{ "status": "error", "message": "the given datetime data is invalid" }
Related Rants
That moment that you come across a domain name which you thought would have definitely been taken already.
Came across strtoti.me. (php function for converting date/time strings into unix epoch's). Quickly wrote an api for it and put it online because fuck it, why not!
Feel free to use it as much as you want, I can't guarantee its availability unless it would become really popular but I can't imagine that.
URL: https://strtoti.me
API example: https://strtoti.me//... 20 20:15
API example (url encoded): https://strtoti.me//...
API documentation (not that good yet, might improve it..): https://strtoti.me
Well, let's see how this goes. Feedback appreciated but I currently have a shitload of projects to it doesn't have the highest priority right now!
rant
api
domain much
strtotime
ohai