Recommend this page to a friend! |
Download .zip |
Info | Example | View files (4) | Download .zip | Reputation | Support forum (3) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2009-04-06 (7 years ago) | 56% | Total: 985 This week: 1 | All time: 3,547 This week: 1,047 |
Version | Licenses | PHP version | Categories | |||
timezoneconverterapi 1.0 | GNU General Publi... | 4.0 | Localization, Time and Date |
Description | Author | ||||||||||||||
This class can be used to convert dates and times between time zones. |
|
/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -= imezone Conversion -= -= File: class-timezone-conversion.php -= -= Created by: Utsav Handa -= -= Email: handautsav [at] hotmail dot com -= -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */ This class implements Timezone datetime conversion functionality. There is a simple usage for converting specified datetime into specified timezone. This class supports about 200 timezone conversion including some local timezone. This class uses generic PHP functions for conversion. Description:: --------------- This class provides a simple method to convert between time zones. It simply uses the built-in PHP function(s) which is available in PHP 4.x and higher. This class supports about 200 timezone conversion including some local timezone around the World. The TimezoneConversion rules on which this converter is based are to provide you with the most accurate time converter utility on the Net! Example : /** require_once('class-timezone-conversion.php'); $tz = new TimezoneConversion(); print "\n Local:: " .$tz->getLocalDateTime(); print "\n GMT ::" .$tz->convertDateTime(); $tz->setProperty('Timezone', 'IST'); print "\n IST ::" .$tz->convertDateTime(); **/ This class it's intended only for experimental/learning purposes. This class is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Utsav Handa - handautsav [at] hotmail dot com |
Files |
File | Role | Description |
---|---|---|
class-timezone-conversion-php4.php | Class | This library provides generic timezone conversion functionlity (for PHP < 5.0) |
class-timezone-conversion.php | Class | This library provides generic timezone conversion functionlity in an uniform way. |
example.php | Example | Example Script |
ReadME.txt | Doc. | ReadMe Manual |
timezoneconverterapi-2009-04-06.zip 13KB | |
timezoneconverterapi-2009-04-06.tar.gz 13KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.