Skip to content
forked from moment/moment

Parse, validate, manipulate, and display dates in javascript.

Notifications You must be signed in to change notification settings

antife-yinyue/moment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Support both Browser and SeaJS

Usage

for Browser:

<script src="path/to/gallery/moment/2.3.1/moment.js"></script>
<script src="path/to/gallery/moment/2.3.1/i18n/zh_cn.js"></script>
<script>
console.log(
  moment().format('LLLL')
)
</script>

for SeaJS:

step 1

seajs.config({
  'vars': {
    'locale': 'zh_cn' // or `en`
  }
})

step 2

define(function(require, exports, module) {
  var moment = require('gallery/moment/2.3.1/moment')
  seajs.log(
    moment().format('LLLL')
  )
})

or

seajs.use('gallery/moment/2.3.1/moment', function(moment) {
  seajs.log(
    moment().format('LLLL')
  )
})

Documentation

http://momentjs.com/docs/

About

Parse, validate, manipulate, and display dates in javascript.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%