PHP Classes

GMT Converter: Convert time between zones defined in a database

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-08-01 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 668 All time: 4,551 This week: 1,152Up
Version License PHP version Categories  
gmtconverter 1.0BSD License4.0Time and Date, Databases
Description Author  

This class can be used to Convert time between zones defined in a MySQL database.

It can lookup in a MySQL database table for time zone offsets relative to GMT given the zone identifier.

The class can convert date and times between zones based on offsets retrieved from the database.

Picture of Abdul Kader
Name: Abdul Kader <contact>
Classes: 1 package by
Country: India India
Age: 30
All time rank: 2669170 in India India
Week rank: 1545 Up119 in India India Up

Set up instructions:

1. import the gmt.sql file to any database

2. modify the config entries for your db and your preferred date/time format in config.php

3. refer example.php for usage of this class

Cheers :)

Happy programming!!!
Abdul Kader, Bangalore, India

  Files folder image Files  
File Role Description
Accessible without login Plain text file Readme.txt Doc. Read Me
Accessible without login Plain text file config.php Conf. Configuration file
Accessible without login Plain text file example.php Example Example on usage
Accessible without login Plain text file gmt.sql Data MySql table dump for gmt zones
Plain text file gmt.class.php Class GMT Class

 Version Control Unique User Downloads Download Rankings  
 0%Total:668All time:4,551
 This week:0This week:1,152Up