File: |
datetimeclass.inc |
Role: |
Class source |
Content type: |
text/plain |
Description: |
class itself |
Class: |
Date & Time
Class to manipulate date and time on a form |
Author: |
By Slava Ivanov |
Last change: |
There is minor version increment to v.1.4 with next changes:
1. Some system doesn't convert year 0 -> 2000, so I've changed method get_select_months() and put to mktime() PHP function full 4 digit year.
2. I tried run script with PHP3 and private method isit_numeric() doesn't work, because I used operator equal identical (===). This is fixed to (==) and script work with PHP3, too.
3. Correct few methods belong to hours and am-pm select. Make internal interpretation of hours inside the class always the same (24 cycle hours).
All interfaces of calls are the same, so it won't affect on any scripts you've already written. Just replace your version of class for new one and you will get very stable and robust class to work with date and time.
Many thanks to Garry Crothers for response and opportunity to fix issues on his system.
|
Date: |
21 years ago |
Size: |
15,301 bytes |
|
|
|