diff --git a/classes.php b/classes.php
index 7a727b9..7f3e85c 100644
--- a/classes.php
+++ b/classes.php
@@ -203,6 +203,31 @@ class ActionDateC extends AbstractAction
}
}
+class ActionStrtotime extends AbstractAction
+{
+ public function setUp()
+ {
+ $this->setContainer( new DivContainer );
+ $this->setFormatter( new EchoFormatter );
+ }
+
+ public function decode()
+ {
+ $tz = date_default_timezone_get();
+ date_default_timezone_set('UTC');
+
+ $time = strtotime($this->value);
+ $str_utc = date('c', $time);
+
+ date_default_timezone_set('America/New_York');
+ $str_ny = date('c', $time);
+
+ date_default_timezone_set($tz);
+
+ return "$time
$str_utc
$str_ny";
+ }
+}
+
class ActionAnsi2Html extends AbstractAction
{
public function setUp()
diff --git a/index.php b/index.php
index 534c9a3..8358fa0 100644
--- a/index.php
+++ b/index.php
@@ -46,6 +46,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
+