Derick Rethans
e3cd394979
- MFH: Support for "back of <hour>" and "front of <hour>" phrases that are used
in Scotland.
18 years ago
Derick Rethans
b5e2564abf
- MFH: Fixed a bug with the YYYY-MM format not resetting the day correctly.
- MFH: Fixed a bug in the DateTime->modify() methods, it would not use the
advanced relative time strings.
- MFH: Fixed return values of all the modifying methods, they now properly
return the object itself.
18 years ago
Derick Rethans
07c9bd8382
- MFH: Fixed an issue with "first <weekday> of" in case the first <weekday> was
the same day-of-week as the first day of the month.
18 years ago
Derick Rethans
11f9cd84f7
- MFH: Fixed bug #43452 (strings containing a weekday, or a number plus weekday
behaved incorrect of the current day-of-week was the same as the one in the
phrase).
18 years ago
Derick Rethans
0ab7520dc0
- MFH: Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone() behave
different).
18 years ago
Derick Rethans
3df7836db9
- MFH: Also add the warnings for times. This does not make sense for the
english text parser, as invalid times are never allowed in there.
18 years ago
Derick Rethans
c76ba173a9
- MFH: Added a warning to the error struct in case a parsed-date was found to
be invalid.
18 years ago
Derick Rethans
5ab9ca968b
- MFH: Fixed a compiler warning - the code didn't make much sense.
18 years ago
Derick Rethans
db2ed70a73
- MFH: Fixed bug #45459 (date_create_from_format() fails on DATE_RFC3339) by
allowing a few more format specifiers in date_create_from_format() /
date_parse_from_format().
18 years ago
Derick Rethans
4a23bbfe75
- MFH: Fixed some ambiguities in the date parser.
18 years ago
Derick Rethans
484d6b21c0
- Replaced // by /* .. */ comments.
18 years ago
Derick Rethans
f533671711
- MFH: Added support for "<xth> <weekday of" and "last <weekday> of" phrases to
be used with months - like in "last saturday of februari 2008".
18 years ago
Derick Rethans
97b37f253c
- MFH: Rearranged some structures to allow for more powerfull period/intervals.
18 years ago
Derick Rethans
357292a098
- MFH: Fixed "this week", "previous week"/"last week" and "next week" phrases
by actually meaning the week.
#- MFH: For now the week starts on Monday, but I plan on making that
# configurable.
18 years ago
Ilia Alshanetsky
97e293ed4b
Removed unused variable
18 years ago
Derick Rethans
a27d6afd83
- Added support for parsing date/time strings returned by MS SQL with strtotime().
18 years ago
Derick Rethans
b8883b65b8
- MFH: Added a few new separation specifiers.
- MFH: Added specifiers that can reset or default the y/m/d/h/i/s/tz values.
- MFH: Fixed a problem with parsing timezones as part of a format.
19 years ago
Derick Rethans
22392affef
- MFH: fixed typoes.
19 years ago
Derick Rethans
a61e5f897c
- MFH: Support "first/last day of <month>" style texts.
19 years ago
Derick Rethans
99c56139c7
- That should have been ||.
19 years ago
Derick Rethans
6878464e06
- MFH: Fixed bug #43960 (strtotime() returns timestamp in the future when given
a bogus string).
19 years ago
Derick Rethans
4b7f5f9630
- MFH: Fixed parsing of timezones
19 years ago
Derick Rethans
3d0797da2b
- MFH: Fixed bug #43075 (Support 2007-11-01T24:00:00+00:00).
19 years ago
Derick Rethans
9f979a16bf
- Added new date/time functionality:
* date_parse_from_format(): Parse date/time strings according to a format.
* date_create_from_format()/DateTime::createFromFormat(): Create a date/time
object by parsing a date/time string according to a given format.
* date_get_last_errors()/DateTime::getLastErrors(): Return a list of warnings
and errors that were found while parsing a date/time string through:
- strtotime() / new DateTime
- date_create_from_format() / DateTime::createFromFormat()
- date_parse_from_format()
# [DOC]
19 years ago
Derick Rethans
4b64dbb9a1
- MFH: Fixed bug #41964 (strtotime returns a timestamp for non-time string of
pattern '(A|a) .+').
- MFH: Fixed bug #41844 (Format returns incorrect number of digits for negative
years -0001 to -0999).
- MFH: Fixed bug #41842 (Cannot create years < 0100 & negative years with
date_create or new DateTime).
- MFH: Fixed bug #41709 (strtotime() does not handle 00.00.0000).
- MFH: Fixed bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as
1999-11-30).
19 years ago
Derick Rethans
d62dca3d48
- Fixed bug #40290 (strtotime() returns unexpected result with particular
timezone offset).
19 years ago
Derick Rethans
b15cbf69c6
- MFH: Fixed bug #40861 (strtotime() doesn't handle double negative relative
time units correctly).
19 years ago
Derick Rethans
b7a791827c
- Revert this patch, as the code was incorrect.
- It was also not committed to HEAD.
19 years ago
Ilia Alshanetsky
5abffb51b6
Fixed bug #40861 (Multiple +/- on relative units breaks strtotime()).
19 years ago
Ilia Alshanetsky
f5b6604376
Fixed bug #39791 (Crash in strtotime() on overly long relative date
multipliers).
20 years ago
Derick Rethans
0c8042dc49
- MFH: The .c file is generated... so updating the .re file and cleaning up WS.
20 years ago
Derick Rethans
5d6f6783ae
- MFH: Added support for the full ISO week number format. (2006-W52-7)
20 years ago
Ilia Alshanetsky
af48ecfc87
Fixed bug #38229 (strtotime() does not parse YYYY-MM format).
20 years ago
Derick Rethans
ddd8fd3e3d
- Fixed bug #37747 (strtotime segfaults when given "nextyear").
20 years ago
Derick Rethans
ab8329ec31
- Fixed bug #37514 (strtotime doesn't assume year correctly).
20 years ago
Derick Rethans
74dfa9f0ba
MFH:
- Implemented Dmitry's const patch.
- Added support for "weekday" as relative item.
- Fixed bug #37368 (Incorrect timestamp returned for strtotime()).
20 years ago
Derick Rethans
4043f77e36
- MFH: Fixed bug #37017 (strtotime fails before 13:00:00 with some time zones
identifiers). (Derick)
- MFH: Fixed bug #36988 (mktime freezes on long numbers). (Derick)
- MFH: Implemented better error and warning handling that is also used for the
date_parse() function.
- MFH: Fixed problems with "T" in front of a time string was seen as a time
zone string.
- MFH: Fixed a problem were 5 and 6 character timezone abbreviations where not
correctly parsed.
Experimental support (All MFH):
- Added the date_parse() function that returns a parsed date/time string
including warnings and errors.
- Added the timezone_name_from_abbr() function that exposes the guessing
mechanism that tries to find a timezone identifier from a timezone
abbreviation and GMT offset.
20 years ago
Derick Rethans
5bfe560cab
- MFH: Fixed bug #36638 (strtotime() returns false when 2nd argument < 1).
(Derick)
21 years ago
Derick Rethans
2e91228d15
- MFH: Fixed bug #36510 (strtotime() fails to parse date strings with tabs).
21 years ago
Ilia Alshanetsky
2d4b399fe1
Revert previous fix to allow for a more comprehensive patch from Derick.
21 years ago
Ilia Alshanetsky
2d02bedd9c
Fixed bug #36510 (strtotime() fails to parse date strings with tabs).
21 years ago
Derick Rethans
521502f416
- MFH: Added support for exif date format
- MFH: Fixed bug #36396 (strtotime() fails to parse dates in dd-mm-yyyy
format).
21 years ago
Derick Rethans
88268c6bcc
- MFH: Fixed bug #35887 (wddx_deserialize not parsing dateTime fields properly).
- MFH: Fixed bug #35885 (strtotime("NOW") no longer works).
- MFH: Fixed bug #33789 (Many Problems with SunFuncs).
- MFH: Fixed bug #33671 (sun_rise and sun_set don't return a GMT timestamp if one
passes an offset).
- MFH: Fixed bug #32820 (date_sunrise and date_sunset don't handle GMT offset
well).
- MFH: Fixed bug #30937 (date_sunrise() & date_sunset() don't handle endless
day/night at high latitudes).
21 years ago
foobar
e3fd31503b
bump the year and license version
21 years ago
Derick Rethans
7b581f6d19
- MFH: Merged new timelib, which is a bit more cleverer
- MFH: Support "UTC" in strtotime() properly.
- MFH: Added astro code, which is going to form the base for the new sunfuncs.
21 years ago
Ilia Alshanetsky
2a29db4b2b
Fixed UTC handling problem stemming from an earlier fix for bug #35422 .
21 years ago
Derick Rethans
20b97141d4
- Those should be lower case only.
21 years ago
Ilia Alshanetsky
579e00d489
Fixed bug #35705 (strtotime() fails to parse soap date format without TZ).
21 years ago
Ilia Alshanetsky
cdb699b497
Fixed bug #35630 (strtotime() crashes on certain relative identifiers).
21 years ago
Ilia Alshanetsky
f19c2e00ec
Fixed bug #35624 (strtotime() does not handle 3 character weekdays).
Improved fix for bug #35414 .
21 years ago