[ Launch: Tributary inlet ] 9f754cefb38ee4abaa94 by ninjaPixel
-
-
Save ninjaPixel/9f754cefb38ee4abaa94 to your computer and use it in GitHub Desktop.
moment test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"description":"moment test","endpoint":"","display":"svg","public":true,"require":[{"name":"d3.js","url":"http://d3js.org/d3.v3.min.js"},{"name":"moment.js","url":"//cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true,"thumbnail":"http://i.imgur.com/AlfUtwm.png"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var date1 = moment('21 aug 2014'); | |
var date2 = moment('Thursday, 21 August 2014'); | |
console.log('date1', date1.date(), 'date2', date2.date()); | |
console.log('month1', date1.month(), 'month2', date2.month()); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment