1
// Generated by Haxe 4.3.1
2
var $hx_exports = typeof exports != "undefined" ? exports : typeof window != "undefined" ? window : typeof self != "undefined" ? self : this;
3
(function ($global) { "use strict";
4
var $estr = function() { return js_Boot.__string_rec(this,''); },$hxEnums = $hxEnums || {},$_;
5
function $extend(from, fields) {
6
var proto = Object.create(from);
7
for (var name in fields) proto[name] = fields[name];
8
if( fields.toString !== Object.prototype.toString ) proto.toString = fields.toString;
9
return proto;
10
}
11
var DateTools = function() { };
12
DateTools.__name__ = true;
13
DateTools.__format_get = function(d,e) {
14
switch(e) {
15
case "%":
16
return "%";
17
case "A":
18
return DateTools.DAY_NAMES[d.getDay()];
19
case "B":
20
return DateTools.MONTH_NAMES[d.getMonth()];
21
case "C":
22
return StringTools.lpad(Std.string(d.getFullYear() / 100 | 0),"0",2);
23
case "D":
24
return DateTools.__format(d,"%m/%d/%y");
25
case "F":
26
return DateTools.__format(d,"%Y-%m-%d");
27
case "M":
28
return StringTools.lpad(Std.string(d.getMinutes()),"0",2);
29
case "R":
30
return DateTools.__format(d,"%H:%M");
31
case "S":
32
return StringTools.lpad(Std.string(d.getSeconds()),"0",2);
33
case "T":
34
return DateTools.__format(d,"%H:%M:%S");
35
case "Y":
36
return Std.string(d.getFullYear());
37
case "a":
38
return DateTools.DAY_SHORT_NAMES[d.getDay()];
39
case "d":
40
return StringTools.lpad(Std.string(d.getDate()),"0",2);
...
</html>