-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCALENDAR.EXP
More file actions
executable file
·48 lines (43 loc) · 1.71 KB
/
CALENDAR.EXP
File metadata and controls
executable file
·48 lines (43 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(* @NESTEDCOMMENTS := 'Yes' *)
(* @PATH := '' *)
(* @OBJECTFLAGS := '0, 8' *)
TYPE CALENDAR :
STRUCT
UTC : DT; (* world time UTC *)
LDT : DT; (* local time *)
LDATE : DATE; (* local date *)
LTOD : TOD; (* local time of day *)
YEAR : INT; (* year of LDATE *)
MONTH : INT; (* month of LDATE *)
DAY : INT; (* day of LDATE *)
WEEKDAY : INT; (* weekday of LDATE *)
OFFSET : INT; (* Time Zone Offset for Local time in minutes *)
DST_EN : BOOL; (* daylight savings time enable *)
DST_ON : BOOL; (* true when daylight savings time os on *)
NAME : STRING(5); (* name of time zone *)
LANGUAGE : INT; (* location number pls see location setup *)
LONGITUDE : REAL; (* longitude of current location *)
LATITUDE : REAL; (* latitude of current location *)
SUN_RISE : TOD; (* sun_rise for current location *)
SUN_SET : TOD; (* sun_set for current location *)
SUN_MIDDAY : TOD; (* worldtime when sun stands at south position *)
SUN_HEIGTH : REAL ; (* suns heigth at midday, south position *)
SUN_HOR : REAL; (* sun angle horizontal 0 = north in degrees *)
SUN_VER : REAL; (* sun angle vertical above horizon in degrees *)
NIGHT : BOOL; (* true between sun_set and sun_rise *)
HOLIDAY : BOOL; (* true when holiday *)
HOLY_NAME : STRING(30); (* name of holiday *)
WORK_WEEK : INT; (* current work week *)
END_STRUCT
END_TYPE
(* revision history
hm 21. nov. 2008 rev 1.0
original version
hm 8. feb. 2009 rev 1.1
added sun position data
hm 10. mar. 2009 rev 1.2
added work_week, sun_midday, sun_heigth
hm 23. jan 2010 rev 1.3
sun_rise, sun_set and sun_midday are now calculated in local time
*)
(* @END_DECLARATION := '0' *)