-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
80 lines (71 loc) · 2.35 KB
/
test.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<title>OSM - Open Source Malaria</title>
<link href="css/osm.css" rel="stylesheet" type="text/css">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<!--<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">-->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<script type="text/javascript" src="javascript/osm.js"></script>
<script type="text/javascript">
/** https://github.com/csnover/js-iso8601 */(function(n,f){var u=n.parse,c=[1,4,5,6,7,10,11];n.parse=function(t){var i,o,a=0;if(o=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(t)){for(var v=0,r;r=c[v];++v)o[r]=+o[r]||0;o[2]=(+o[2]||1)-1,o[3]=+o[3]||1,o[8]!=="Z"&&o[9]!==f&&(a=o[10]*60+o[11],o[9]==="+"&&(a=0-a)),i=n.UTC(o[1],o[2],o[3],o[4],o[5]+a,o[6],o[7])}else i=u?u(t):NaN;return i}})(Date)
</script>
<script>
$(document).ready(function () {
testDates();
});
</script>
</head>
<body>
<div class="row-fluid span12">
<div id='input'>
Input =
</div>
<div id='length'>
Length =
</div>
<div id='zulu'>
Date from Zulu Format =
</div>
<div id='zero'>
Date from Zero Format =
</div>
<div id='indexOf'>
indexOf =
</div>
<div id='index'>
index =
</div>
<div id='match'>
match =
</div>
<div id='nomatch'>
No match =
</div>
<div id='tzd'>
TZD =
</div>
<div id='noTZ'>
Date from No TZ Format =
</div>
<div id='noT0000'>
Date from No T0000 Format =
</div>
<div id='noT00'>
Date from No T00 Format =
</div>
<div id='added5'>
Date with 5 hours added =
</div>
</div>
<hr>
</body>
</html>