- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathWebAPI.Date.pas
More file actions
Latest commit
30 lines (18 loc) · 918 Bytes
/
Copy pathWebAPI.Date.pas
File metadata and controls
30 lines (18 loc) · 918 Bytes
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
unit WebAPI.Date;
interface
type
JDate = classexternal'Date'
constructor Create(); overload; external;
constructor Create(millisecondsSinceEpoch : Float); overload; external;
functionGetSeconds : Integer; external'getSeconds';
functionGetMinutes : Integer; external'getMinutes';
functionGetHours : Integer; external'getHours';
functionGetDate : Integer; external'getDate'; // 1-31
functionGetMonth : Integer; external'getMonth'; // 0-11
functionGetFullYear : Integer; external'getFullYear'; // 2016
functionGetTimezoneOffset : Integer; external'getTimezoneOffset'; // in minutes
functionToLocaleString : String; external'toLocaleString';
functionGetTime : Float; external'getTime';
classfunctionNow : Float; external'now';
classfunctionParse(isoDate : String) : Integer; external'parse';
end;