forked from moment/moment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.jade
45 lines (42 loc) · 1.39 KB
/
home.jade
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
extends html
block styles
link(rel="stylesheet", href="css/style.css")
title Moment.js - A lightweight javascript date library
block scripts
script(src="js/home.min.js")
block content
#home
h2 Moment.js
h3 A lightweight javascript date library for parsing, manipulating, and formatting dates.
.col1
h4
span Get it
pre npm install moment
a.btn.cupid-green(href="https://raw.github.com/timrwood/moment/master/moment.min.js")
strong Production
span.version= 'Version ' + version
span.filesize= minsize + ' minified & gzipped'
a.btn.minimal(href="https://raw.github.com/timrwood/moment/master/moment.js")
strong Development
span.version= 'Version ' + version
span.filesize= srcsize + ' full source + comments'
.col2
h4
span Use it
pre.js var now = moment();\n
| console.log(now.format('dddd, MMMM Do YYYY, h:mm:ss a'));
h5
span#js-format-now
pre.js var aWhileAgo = moment([2011, 10, 30]);\n
| console.log(aWhileAgo.fromNow());
h5
span#js-from-now
pre.js var now = moment().add('days', 9);\n
| console.log(now.format('dddd, MMMM Do YYYY'));
h5
span#js-add
pre.js var now = moment();\n
| moment.lang('fr')
| console.log(now.format('dddd, MMMM Do YYYY, h:mm:ss a'));
h5
span#js-lang