|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Convert timezone
Hi,
I have date with my server's timezone. I want to convert it with another timezone either EST or GMT, found Date:Manip module but cant find exact use, can anyone help... |
| Sponsored Links | ||
|
|
|
#2
|
||||
|
||||
|
Use TZ variable
|
|
#3
|
||||
|
||||
|
Is this date string in a log file or suchlike? If so can you provide an example?
|
|
#4
|
|||
|
|||
|
date is not in any log file... just got Date_ConvTZ function from Date:Manip module, solved my problem
Thanks all |
|
#5
|
|||
|
|||
|
PHP function for Time Zone conversion
I recently found that PHP doesn't have an inbuilt function for conversion of time/date between multiple time zones and neither could I find a third-party function for the purpose. However, I did find the PEAR class which has inbuilt support for multiple time-zones but it cannot be used by "including" itself in the php page. PEAR class can be used only after installation, which may not be feasible in each and every case.
To avoid the hassles of installation I have written a set of 3 functions in PHP which wil allows you to - 1. Convert GMT to local time zone 2. Convert local time zone to GMT 3. Convert between two different time zones. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Crontab and timezone | lbeard | Solaris | 2 | 07-25-2007 11:55 PM |
| Timezone | oss | UNIX for Advanced & Expert Users | 7 | 10-20-2005 02:20 AM |
| timezone | eddyvdv | UNIX for Dummies Questions & Answers | 1 | 04-08-2002 05:46 PM |
| Timezone | Novisern | UNIX for Dummies Questions & Answers | 5 | 03-28-2002 07:13 PM |
| Timezone | ortsvorsteher | UNIX for Dummies Questions & Answers | 6 | 03-07-2002 04:08 AM |