Skip to content

Instantly share code, notes, and snippets.

View lox's full-sized avatar

Lachlan Donald lox

View GitHub Profile
@lox
lox / ts.php
Created May 11, 2010 23:49
Command-line script for manipulating timestamps
#!/usr/bin/env php
<?php
/**
* Command-line script for manipulating timestamps
*/
// parse options
$options = array('f'=>'r', 't'=>@date_default_timezone_get());
foreach(array_keys($options) as $arg)