Feature Requests: Browse | Submit New | Admin

[#4141] Method to return GMT offset value for each Timezone

Date:
2006-04-17 15:18
Priority:
2
Submitted By:
Philip Ross (psross)
Assigned To:
Philip Ross (psross)
Category:
Timezone
State:
Open
Summary:
Method to return GMT offset value for each Timezone

Detailed description
For display purposes, it is often useful to have a GMT offset for each timezone. Since the offset can change when timezones
are redefined, this will have to use a reference date to perform the calculation.

Two methods should be added. One should return the offset in seconds, the other should return a string (GMT+1, GMT-2,
GMT+1:30, etc). Both should take an optional reference date (UTC) as a parameter and use the current date if unspecified.
To determine the offset, period_for_utc(reference).std_offset can be used.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item