File: calc_date1.ppl

package info (click to toggle)
pyxplot 0.9.2-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,288 kB
  • sloc: ansic: 50,373; xml: 1,339; python: 570; sh: 318; makefile: 89
file content (9 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
print time.fromCalendar(2000,1,1,0,0,0)
a = time.fromCalendar(2000,1,1,0,0,0,"Australia/Perth")
print a # Note that this does not use Australian time
set timezone "Pacific/Chatham"
print a
set timezone "Antarctica/South_Pole"
print a
print a.toYear() # at the south pole
print a.toYear("Europe/London")