Start of a date handling library
Posted: Fri Jun 28, 2013 11:38 pm
Hi all,
[update]Libdate is now on gitHub
https://github.com/derbrill/libdate
[/update]
as I currently (again) stumbled over the limits of the convert command (on windows no dates before 01/01/1970 can be converted) I started on a small library to handle dates. I will try to attach the stack here.
[update August 01 2014]
I have put quite some work into the lib. There is still quite a bit to do, however it is worth downloading the update:
Handler and Function names have been cleaned up. Also a parser has been added to finally get rid of the convert command as good as possible. I need your help now! I would like to add parsing for as many different languages I can get.
If you are using operating systems set to languages other than english, swedish or german, could you please be so kind to post:
the system dateFormat
the long system dateFormat
the abbrev system dateFormat
the system monthNames
the abbrev system monthNames
the system weekDayNames
the abbrev system weekDayNames
on your machines, along with the language you are using on your system and if possible the ISO code for that language? That would be a great help!
[/update]
[update]
I will always attach the most current version of the library to this post.
June 4th 2013:
New functions added:
libDate_DaysBetween -> returns the number of days between 2 dates
libDate_DateInDaysFrom -> returns the date in a number of days
libDate_DaysOfCalendarWeekIso -> returns the dates in a specific calendar week (ISO Format)
Helper functions:
libDate_DayNumber -> returns a numeric value for a date
libDate_DateFromNumber -> inverse function of the above
[/update]
[update]Libdate is now on gitHub
https://github.com/derbrill/libdate
[/update]
as I currently (again) stumbled over the limits of the convert command (on windows no dates before 01/01/1970 can be converted) I started on a small library to handle dates. I will try to attach the stack here.
[update August 01 2014]
I have put quite some work into the lib. There is still quite a bit to do, however it is worth downloading the update:
Handler and Function names have been cleaned up. Also a parser has been added to finally get rid of the convert command as good as possible. I need your help now! I would like to add parsing for as many different languages I can get.
If you are using operating systems set to languages other than english, swedish or german, could you please be so kind to post:
the system dateFormat
the long system dateFormat
the abbrev system dateFormat
the system monthNames
the abbrev system monthNames
the system weekDayNames
the abbrev system weekDayNames
on your machines, along with the language you are using on your system and if possible the ISO code for that language? That would be a great help!
[/update]
[update]
I will always attach the most current version of the library to this post.
June 4th 2013:
New functions added:
libDate_DaysBetween -> returns the number of days between 2 dates
libDate_DateInDaysFrom -> returns the date in a number of days
libDate_DaysOfCalendarWeekIso -> returns the dates in a specific calendar week (ISO Format)
Helper functions:
libDate_DayNumber -> returns a numeric value for a date
libDate_DateFromNumber -> inverse function of the above
[/update]