skip to main | skip to sidebar

21st Century Mandarin

Mainly about the process of programming as both work and study, starting from the ground up.

Friday, June 24, 2011

Friday 6/24/2011


<?php
$date1 = '14 June 2002';
$date2 = '05 Feb 2006';

$its1 = strtotime($date1);
$its2 = strtotime($date2);

printf("

The difference between %s and %s is %d seconds.

", $date1, $date2, $its2 - $its1);
?>
Posted by aljensen at 3:40 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Pages

  • Home
  • Projects

Blog Archive

  • ►  2012 (2)
    • ►  January (2)
  • ▼  2011 (165)
    • ►  December (17)
    • ►  November (18)
    • ►  October (17)
    • ►  September (19)
    • ►  August (20)
    • ►  July (11)
    • ▼  June (8)
      • Monday, June 27, 2011
      • Friday 6/24/2011
      • Thursday 6/23/2011
      • <?phpclass db {private $connect = "";function __co...
      • <?phpclass ShopProduct { public $title; public $pr...
      • 6/14/2001
      • <script type="text/javascript"> function checkSear...
      • Javascript
    • ►  May (3)
    • ►  April (7)
    • ►  March (11)
    • ►  February (13)
    • ►  January (21)
  • ►  2010 (84)
    • ►  December (20)
    • ►  November (17)
    • ►  October (15)
    • ►  September (16)
    • ►  August (13)
    • ►  July (3)

About Me

My photo
aljensen
View my complete profile