Ticket #855 (assigned enhancement)

Opened 5 years ago

Last modified 1 year ago

strtotime

Reported by: weyrick Assigned to: tim (accepted)
Priority: normal Milestone: 3.1.0 beta
Component: Standard Library Version: trunk
Severity: minor Keywords:
Cc:

Description (Last modified by weyrick)

support is there but minimal

Change History

10/17/03 10:43:10 changed by weyrick

  • owner changed from anonymous to weyrick.
  • status changed from new to assigned.

10/17/03 10:43:31 changed by weyrick

  • status changed from assigned to new.
this has been implemented to some degree, needs more work

11/26/03 11:52:07 changed by weyrick

<?php
	$dates = array (
		"1999-10-13",
		"Oct 13  1999",
		"2000-01-19",
		"Jan 19  2000",
		"2001-12-21",
		"Dec 21  2001",
		"2001-12-21 12:16",
		"Dec 21 2001 12:16",
		"Dec 21  12:16",
	    "2001-10-22 21:19:58",
	    "2001-10-22 21:19:58-02",
	    "2001-10-22 21:19:58-0213",
	    "2001-10-22 21:19:58+02",
    	"2001-10-22 21:19:58+0213"
	);

	putenv ("TZ=GMT");
	foreach ($dates as $date) {
	    echo date ("Y-m-d H:i:s\n", strtotime ($date));
	}

	if (PHP_OS === "OSF1") {
		// POSIX style
		putenv ("TZ=EST5EDT4,M4.1.0,M10.5.0");
	} else {
		putenv ("TZ=US/Eastern");
	}
	foreach ($dates as $date) {
	    echo date ("Y-m-d H:i:s\n", strtotime ($date));
	}
?>

12/03/03 16:31:48 changed by weyrick

  • status changed from new to closed.

10/20/05 06:41:50 changed by tim

  • owner changed from weyrick to tim.
  • status changed from closed to assigned.

04/15/07 11:14:33 changed by weyrick

  • severity changed from feature to minor.
  • version set to trunk.
  • type set to enhancement.
  • description changed.
  • milestone set to 3.1.0 beta.

maybe use same parser as Zend - check license?

07/06/07 16:31:55 changed by anonymous