Ternstyle

Ternstyle

A web software and design firm

Time PHP Class

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 Version: 2.0

$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

Time PHP Class

Connect with us

We dig the back-and-forth.

Copyright © 2018 Ternstyle LLC. All rights reserved.