How To Convert UNIX Timestamps to Date using PHP CLI

Author: , August 15th, 2015

For a quick visual check to see what the human-readable date is based on a UNIX timestamp integer: php -r ‘print date(“r”,1483228799);’ php -r ‘print strtotime(“1 Jan 2015″) – 1;’

The Fast Lane

Author: , December 11th, 2011

Things sure have been busy! Multiple client projects in parallel always seem to make time go faster. Now that two different websites have been launched, things should calm down a tad. The concept of having weekends off for a while is very attractive. I realized recently that the consulting business has been a crazy ride […]

How To Calculate The Number Of Days Between Dates In PHP

Author: , November 9th, 2011

1 2 3 4 5 date_default_timezone_set(’America/New_York’); $datetime1 = new DateTime(’2009-10-31′); $datetime2 = new DateTime(’now’); $interval = $datetime1->diff($datetime2); print $interval->format(’%a days_elapsed’); date_default_timezone_set(‘America/New_York’); $datetime1 = new DateTime(’2009-10-31′); $datetime2 = new DateTime(‘now’); $interval = $datetime1->diff($datetime2); print $interval->format(‘%a days_elapsed’); http://www.php.net/manual/en/datetime.diff.php

Where Did July Go?

Author: , July 24th, 2011

I cannot understand where this month went. Just trying to do too much in an effort to survive. Am pursuing some sales leads that look promising and have existing client projects that are coming along well. Simply MUST FINISH them! These are not easy times for this country, except for those in power who get […]

Time Flies

Author: , January 4th, 2011

How is it 2011 already?

How To Sync the Date and Time Between Servers

Author: , July 29th, 2010

Extremely simple way to set the date and time the same as another server: (Requires SSH access to the server that has the time you want to copy; does NOT have to be root access)

Time just flies

Author: , November 2nd, 2009

Looked up and saw that two hours have gone by – where do they go so quickly? Had some dinner, chatted with my lovely wife who is stuck at work a bit longer. The faster I can succeed so that she does not have to slave away for corporate America, the happier I will be. […]