ternstyle - Web solutions for the happy developer and the disgruntled site owner.

Lehigh Valley Web Design, Lehigh Valley Web Programming, Lehigh Valley Web Hosting, Lehigh Valley Wordpress, PHP Classes, Javascript Libraries, Wordpress Plugins

Time PHP Class

This is a class I use to create and manipulate UNIX time stamps. All the functions created so far I have written out of necessity so this is in no way a full-fledged extension of PHP's DateTime object. This class offers a number of simple ways to get from one time stamp to another. Great for calendars and other date related applications.

Sample Code

$my_offset = -400;
$my_time = $getTIME->clientTime($my_offset);

The above variable $my_time will be a UNIX time stamp reflecting my date and time right now in relation to Universal Time (UTC).

Features

  • Create local and universal time stamps
  • Get times offset from UTC time
  • Render day, week and month related time stamps from any other time stamp

Current Version

The current version of this software is 2.0.

Requirements

PHP 4.0+

Copyright © 2007 Ternstyle Inc., All rights reserved.
Site designed by, well, me.