| От | A Gilmore |
|---|---|
| Тема | DST and time zones |
| Дата | |
| Msg-id | 414C721F.30107@shaw.ca обсуждение исходный текст |
| Ответы |
DST and time zones
Re: DST and time zones |
| Список | pgsql-novice |
Hello, I need a method of returning a date in a given timezone and accomidating DST. For example, my server is set to UTC, Id like to return the epoch for Vancouver Canada. You can do a select extract(epoch from now() at time zone 'pst'); Of course this is wrong since DST is in affect, so it should be 'pdt' not 'pst'. I understand that postgresql doesn't do this itself, it uses the OS, however does anyone know a crafty way to get the current time in any timezone, whether DST is in effect or not? Im using pg 7.4.3 running on Linux 2.4.25. Thanks in advance. A Gilmore
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера