ternstyle - Lehigh Valley, Allentown, Bethlehem, Easton, WordPress, Lehigh Valley web design, web programming, web development, lehigh valley web hosting, content management tools, website plugins, WordPress plugins, WordPress Themes, php libraries, php classes, javascript libraries, javascript classes, jQuery plugins, web programming, free web software, free php classes, free software

  • NEW EVENT PLUGIN FOR WordPress ™!

    ternCal is the New Ultimate WordPress ™ Event System!

    Featuring repeating events, Google Calendar integration, ICAL and Outlook Support, month, week, and day views, WordPress ™ short code for listing events, a color coded legend and much much more...

    Check it out now!

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.

Download

Download Time PHP Class

2.0

4 KB

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+

Documentation

Home > Products > PHP classes > Time PHP Class

Copyright © 2010 Ternstyle Inc. All rights reserved.
site design: ternstyle.us
Lehigh Valley Website Design