2009/11/18 Ionel Mugurel Ciobica <[email protected]>:
> Buna seara,
>
> Cum pot afla usor care este ora (data) adevarata daca nu vreau sa
> folosesc ora de vara?

O ceri intr-un timezone care nu are DST, cum ar fi UTC.

ora adevarata include si timezone-ul, you know...

pe...@hearth:~ $ TZ=Europe/Bucharest date -d @1258574425
Wed Nov 18 22:00:25 EET 2009
pe...@hearth:~ $ TZ=Europe/London date -d @1258574425
Wed Nov 18 20:00:25 GMT 2009
pe...@hearth:~ $ TZ=Asia/Calcutta date -d @1258574425
Thu Nov 19 01:30:25 IST 2009
pe...@hearth:~ $ TZ=US/Pacific date -d @1258574425
Wed Nov 18 12:00:25 PST 2009
pe...@hearth:~ $ TZ=UTC date -d @1258574425
Wed Nov 18 20:00:25 UTC 2009

Peste tot mai sus e aceeasi ora, include timezone-ul pentru ca e
"adevarata". Daca vrei sa stii daca e ora de vara sau nu, te poate
ajuta zdump, de exemplu:

pe...@hearth:~ $ zdump -v Europe/Bucharest | grep 2009
Europe/Bucharest  Sun Mar 29 00:59:59 2009 UTC = Sun Mar 29 02:59:59
2009 EET isdst=0 gmtoff=7200
Europe/Bucharest  Sun Mar 29 01:00:00 2009 UTC = Sun Mar 29 04:00:00
2009 EEST isdst=1 gmtoff=10800
Europe/Bucharest  Sun Oct 25 00:59:59 2009 UTC = Sun Oct 25 03:59:59
2009 EEST isdst=1 gmtoff=10800
Europe/Bucharest  Sun Oct 25 01:00:00 2009 UTC = Sun Oct 25 03:00:00
2009 EET isdst=0 gmtoff=7200

(vezi flagul isdst).

HTH,
-- 
Petre "don't thread on me" Ratiu
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui