]> git.ipfire.org Git - thirdparty/moment.git/commit
Add optional time argument to calendar method 1554/head
authorJoel Gillman <joeltgillman@gmail.com>
Wed, 26 Mar 2014 23:38:01 +0000 (16:38 -0700)
committerJoel Gillman <joeltgillman@gmail.com>
Wed, 26 Mar 2014 23:38:01 +0000 (16:38 -0700)
commitf282ddad330fe963524f1053e4267dffc8b998a0
tree1a2f057a4ecfcfee8c584b3b4ab53aa7ae469dbd
parent40df767355160bf6c26be34153fe01e91b40019e
Add optional time argument to calendar method

Mostly useful for running tests when you need to stub out time as a
specific time. Or for if you want to get "calendar" style formating
relative to a time that is not "now".
moment.js
test/moment/format.js