[Include] Date/Time Utils
#1

Hey,

Recently, someone has asked for some ways to do stuff with dates and i was like:

Quote:
Originally Posted by Marcel
I am sure there is a library (include) to do this stuff.
Turned out there isn't (or maybe i was too dumb to find one), so i made one myself.


Important Notes:
15/01/2017
There have been a couple of bugs, because i didn't test everything properly, because of that i have now implemented a couple of Unit tests, please always use the latest version!


Information:

All functions work with integers, but in addition to that there is a function to convert a date string into integers and back.

Available Date Formats:

PHP код:
YYYY_DD_MM
YYYY_MM_DD
DD_MM_YYYY
MM_DD_YYYY 
The separator to divide month, day and year from another is chooseable.

GitHub Page (Download)

Documentation (Unfinished)


Sorry, for not providing much documentation and information in this thread, use the GitHub Page instead.

Hope it is useful to at least some people. Also, everyone is welcome to improve / extend this library.


greetings Marcel
Reply


Messages In This Thread
Date/Time Utils - by BiosMarcel - 14.01.2017, 16:21
Re: Date/Time Utils - by Ivan_Ino - 14.01.2017, 16:26
Re: Date/Time Utils - by BiosMarcel - 14.01.2017, 16:26
Re: Date/Time Utils - by Pearson - 15.01.2017, 08:32
Re: Date/Time Utils - by BiosMarcel - 15.01.2017, 08:32
Re: Date/Time Utils - by SyS - 15.01.2017, 10:41
Re: Date/Time Utils - by BiosMarcel - 15.01.2017, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)