]> git.ipfire.org Git - thirdparty/moment.git/log
thirdparty/moment.git
13 years agogetLangDefinition will now automatically load lang 332/head
Rocky Meza [Mon, 11 Jun 2012 17:23:53 +0000 (11:23 -0600)] 
getLangDefinition will now automatically load lang

I extracted the loadLang function out of moment.lang so that it could be
used internally in moment.  When developers use moment.fn.lang or
moment.langData now, if the language requested has not yet been loaded,
it will be loaded.  Unlike moment.lang, these functions do not change
the global language config.

13 years agoCondensing the getLangDefinition function
Rocky Meza [Mon, 11 Jun 2012 16:20:00 +0000 (10:20 -0600)] 
Condensing the getLangDefinition function

13 years agoCondense the duration.fn a little bit.
Rocky Meza [Sun, 10 Jun 2012 19:34:46 +0000 (13:34 -0600)] 
Condense the duration.fn a little bit.

13 years agoexpose the getLangDefinition function
Rocky Meza [Sun, 10 Jun 2012 19:34:36 +0000 (13:34 -0600)] 
expose the getLangDefinition function

13 years agoFix meridiem isUpper/isLower params to match docs
Rocky Meza [Sun, 10 Jun 2012 18:36:10 +0000 (12:36 -0600)] 
Fix meridiem isUpper/isLower params to match docs

There were no tests ensuring that this worked before.  Now, the English
language definition relies on isUpper/isLower.  I think this should be a
good enough test of this.

13 years agoInstance Language Configuration
Rocky Meza [Fri, 8 Jun 2012 04:45:42 +0000 (22:45 -0600)] 
Instance Language Configuration

I have provided a `lang` method on both moment.fn and moment.duration.fn
to allow for instances of moments and durations to have their own
language configuration.  Additionally, the `lang` method is a getter
which returns either the moment's language definition object or the
global language definition object if the moment did not have one set.

Also, I modified the code surrounding meridiem to always expect a
function.  This simplifies the formatter code, and also ensures
inheritability of language configuration values.

13 years agoMerging in feature/isValid
Tim Wood [Fri, 8 Jun 2012 00:01:21 +0000 (17:01 -0700)] 
Merging in feature/isValid

13 years agoMerge pull request #318 from adambrunner/i18n-hu
Tim Wood [Thu, 7 Jun 2012 23:47:35 +0000 (16:47 -0700)] 
Merge pull request #318 from adambrunner/i18n-hu

Hungarian language with unit tests

13 years agobetter comment…
Tim Wood [Wed, 6 Jun 2012 21:47:23 +0000 (14:47 -0700)] 
better comment…

13 years agoCommenting and organizing sections
Tim Wood [Wed, 6 Jun 2012 21:45:54 +0000 (14:45 -0700)] 
Commenting and organizing sections

13 years agoMerging in cached formatter to develop
Tim Wood [Wed, 6 Jun 2012 21:24:40 +0000 (14:24 -0700)] 
Merging in cached formatter to develop

13 years agoFixing moment.utc(number). #323
Tim Wood [Thu, 31 May 2012 23:03:45 +0000 (16:03 -0700)] 
Fixing moment.utc(number). #323

13 years agoFixed days index in 'hu' language file and fixed unit test. 318/head
adambrunner [Tue, 29 May 2012 22:02:02 +0000 (00:02 +0200)] 
Fixed days index in 'hu' language file and fixed unit test.

13 years agoHungarian language with unit tests
adambrunner [Sun, 27 May 2012 20:59:35 +0000 (22:59 +0200)] 
Hungarian language with unit tests

13 years agoTrimming some bytes… 317/head
Tim Wood [Fri, 25 May 2012 01:06:08 +0000 (18:06 -0700)] 
Trimming some bytes…

13 years agoAdding support for L LL LLL LLLL LT
Tim Wood [Thu, 24 May 2012 23:40:13 +0000 (16:40 -0700)] 
Adding support for L LL LLL LLLL LT

13 years agoCached format functions like xaprb
Tim Wood [Thu, 24 May 2012 22:17:50 +0000 (15:17 -0700)] 
Cached format functions like xaprb

Still need to inline L LL LLL LLLL LT functions…

13 years agoMerge branch 'develop' of https://github.com/timrwood/moment into develop
Tim Wood [Thu, 24 May 2012 17:28:06 +0000 (10:28 -0700)] 
Merge branch 'develop' of https://github.com/timrwood/moment into develop

13 years agoA better npm description.
Tim Wood [Thu, 24 May 2012 17:27:55 +0000 (10:27 -0700)] 
A better npm description.

13 years agoAdding tests for isValid and moment.utc() 306/head
Tim Wood [Thu, 24 May 2012 16:51:09 +0000 (09:51 -0700)] 
Adding tests for isValid and moment.utc()

13 years agoMerge pull request #262 from eternicode/feature/weekdaysMin
Tim Wood [Thu, 24 May 2012 16:42:29 +0000 (09:42 -0700)] 
Merge pull request #262 from eternicode/feature/weekdaysMin

Support for two-letter days-of-week

13 years agoFix Portuguese weekdaysMin 262/head
Andrew Rowls [Fri, 18 May 2012 13:22:36 +0000 (09:22 -0400)] 
Fix Portuguese weekdaysMin

13 years agoDon't title-case weekdaysMin in Norwegian
Andrew Rowls [Mon, 14 May 2012 18:42:17 +0000 (14:42 -0400)] 
Don't title-case weekdaysMin in Norwegian

13 years agoFix French weekdaysMin
Andrew Rowls [Mon, 14 May 2012 18:37:45 +0000 (14:37 -0400)] 
Fix French weekdaysMin

13 years agoDon't title-case weekdaysMin in Swedish
Andrew Rowls [Mon, 14 May 2012 18:12:40 +0000 (14:12 -0400)] 
Don't title-case weekdaysMin in Swedish

13 years agoDon't title-case weekdaysMin in Euskara
Andrew Rowls [Mon, 14 May 2012 17:33:42 +0000 (13:33 -0400)] 
Don't title-case weekdaysMin in Euskara

13 years agoDon't title-case weekdaysMin in Finnish
Andrew Rowls [Mon, 14 May 2012 17:29:56 +0000 (13:29 -0400)] 
Don't title-case weekdaysMin in Finnish

13 years agoUse shorter weekdaysMin in Italian
Andrew Rowls [Mon, 14 May 2012 17:26:50 +0000 (13:26 -0400)] 
Use shorter weekdaysMin in Italian

13 years agoAdd weekdaysMin (dd format) and tests
Andrew Rowls [Mon, 14 May 2012 02:51:26 +0000 (22:51 -0400)] 
Add weekdaysMin (dd format) and tests

13 years agoMerge commit '618441a45f2937d9294e92f73d624f5a7d0ffe1a' into feature/isValid
Tim Wood [Fri, 11 May 2012 19:20:22 +0000 (12:20 -0700)] 
Merge commit '618441a45f2937d9294e92f73d624f5a7d0ffe1a' into feature/isValid

13 years agoChanging file size diff to use 1.6.2 instead of 1.6.1
Tim Wood [Fri, 11 May 2012 19:19:48 +0000 (12:19 -0700)] 
Changing file size diff to use 1.6.2 instead of 1.6.1

13 years agoAdding lang comments for authors and full language name
Tim Wood [Fri, 11 May 2012 17:20:40 +0000 (10:20 -0700)] 
Adding lang comments for authors and full language name

13 years agoFixing tests so that they use actual dates so we can test that hours minutes and...
Tim Wood [Fri, 11 May 2012 16:41:22 +0000 (09:41 -0700)] 
Fixing tests so that they use actual dates so we can test that hours minutes and seconds can fail

I think its impossible to have an invalid fractional second, as it can
be from 0 - 999. Removing the test for it.

13 years agoFixing duplicated unit test names
Tim Wood [Fri, 11 May 2012 16:16:56 +0000 (09:16 -0700)] 
Fixing duplicated unit test names

13 years agoAdding logic for handling whether the array was created with new Date() or Date.utc()
Tim Wood [Thu, 10 May 2012 23:02:37 +0000 (16:02 -0700)] 
Adding logic for handling whether the array was created with new Date() or Date.utc()

13 years agoMore work on isValid
Tim Wood [Thu, 10 May 2012 17:09:17 +0000 (10:09 -0700)] 
More work on isValid

I moved all calls to Date.utc.apply({}, array) into makeDateFromArray.
I also noticed a bug where moment([2010, 0, 0]) would be converted to
moment([2010, 0, 1]) and had to fix a bunch of unit tests that were
dependent on this bug.

13 years agoFirst pass at isValid
Tim Wood [Thu, 10 May 2012 15:39:36 +0000 (08:39 -0700)] 
First pass at isValid

13 years agoMerge pull request #305 from mirontoli/master
Tim Wood [Tue, 8 May 2012 16:30:32 +0000 (09:30 -0700)] 
Merge pull request #305 from mirontoli/master

Added Chuvash Language

13 years agoremoved experimental functions 304/head 305/head
Anatoly Mironov [Sat, 5 May 2012 19:08:08 +0000 (21:08 +0200)] 
removed experimental functions

13 years agoadded chuvash test and lang
Anatoly Mironov [Sat, 5 May 2012 18:46:59 +0000 (20:46 +0200)] 
added chuvash test and lang

13 years agoadded cv.js
Anatoly Mironov [Sat, 5 May 2012 13:32:58 +0000 (15:32 +0200)] 
added cv.js

13 years agoFix merge conflict for 1.6.2
Tim Wood [Fri, 4 May 2012 17:18:27 +0000 (10:18 -0700)] 
Fix merge conflict for 1.6.2

13 years agoMerge branch 'hotfix/1.6.2' 1.6.2
Tim Wood [Fri, 4 May 2012 17:14:04 +0000 (10:14 -0700)] 
Merge branch 'hotfix/1.6.2'

13 years agoBumping version number for 1.6.2 hotfix
Tim Wood [Fri, 4 May 2012 17:14:00 +0000 (10:14 -0700)] 
Bumping version number for 1.6.2 hotfix

13 years agoUpdating built and test files for #300
Tim Wood [Fri, 4 May 2012 17:12:08 +0000 (10:12 -0700)] 
Updating built and test files for #300

13 years agoMerge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into hotfix/1.6.2
Tim Wood [Fri, 4 May 2012 17:07:44 +0000 (10:07 -0700)] 
Merge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into hotfix/1.6.2

13 years agoMerge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into develop
Tim Wood [Fri, 4 May 2012 17:07:06 +0000 (10:07 -0700)] 
Merge commit '22176d500f19ab9beb255498ca280dbdf69a7ff2' into develop

13 years agoMerge pull request #300 from conanca/master
Tim Wood [Fri, 4 May 2012 17:01:16 +0000 (10:01 -0700)] 
Merge pull request #300 from conanca/master

correct the translation of "future"

13 years agoFixing unit tests in all timezones
Tim Wood [Fri, 4 May 2012 16:45:54 +0000 (12:15 -0430)] 
Fixing unit tests in all timezones

13 years agoFixing tests where timezone is multiple of 15 and utc is wrong
Tim Wood [Fri, 4 May 2012 01:30:06 +0000 (18:30 -0700)] 
Fixing tests where timezone is multiple of 15 and utc is wrong

13 years agoMerge branch 'feature/test-all-zones' into develop
Tim Wood [Fri, 4 May 2012 01:21:22 +0000 (18:21 -0700)] 
Merge branch 'feature/test-all-zones' into develop

13 years agoMerging in changes from hot fix/1.6.2 branch
Tim Wood [Fri, 4 May 2012 01:20:58 +0000 (18:20 -0700)] 
Merging in changes from hot fix/1.6.2 branch

13 years agoSwitching to node js timezone tests for cleaner output
Tim Wood [Fri, 4 May 2012 01:12:39 +0000 (06:57 +0545)] 
Switching to node js timezone tests for cleaner output

13 years agoSwitching from this.clone() to moment(this) to save 10/3 bytes
Tim Wood [Thu, 3 May 2012 19:51:49 +0000 (12:51 -0700)] 
Switching from this.clone() to moment(this) to save 10/3 bytes

13 years agoAdding zone tests #298
Tim Wood [Thu, 3 May 2012 19:46:10 +0000 (12:46 -0700)] 
Adding zone tests #298

13 years agoShaving bytes for #302
Tim Wood [Thu, 3 May 2012 17:02:19 +0000 (10:02 -0700)] 
Shaving bytes for #302

13 years agoTrimming bytes, 73/20
Tim Wood [Thu, 3 May 2012 16:57:30 +0000 (09:57 -0700)] 
Trimming bytes, 73/20

13 years agoAdding file size diff script to measure the size of the library vs the latest stable...
Tim Wood [Thu, 3 May 2012 16:53:41 +0000 (09:53 -0700)] 
Adding file size diff script to measure the size of the library vs the latest stable branch

13 years agoFixing moment.humanizeDuration(60000, true); syntax
Tim Wood [Thu, 3 May 2012 16:33:53 +0000 (09:33 -0700)] 
Fixing moment.humanizeDuration(60000, true); syntax

Yeah, it's ugly, but it will be deprecated in 1.7.0 anyway…
#299

13 years agoFixing thrown error when parsing an empty string with multiple formats
Tim Wood [Thu, 3 May 2012 16:15:48 +0000 (09:15 -0700)] 
Fixing thrown error when parsing an empty string with multiple formats

#301

13 years agocorrect the translation of 'future' 300/head
Conanca [Thu, 3 May 2012 07:26:22 +0000 (15:26 +0800)] 
correct the translation of 'future'

13 years agoFixing bug on #297
Tim Wood [Tue, 1 May 2012 23:05:41 +0000 (16:05 -0700)] 
Fixing bug on #297

13 years agoAdding automatic iso parsing support for fractional seconds and timezone as 'Z'
Tim Wood [Tue, 1 May 2012 17:03:55 +0000 (10:03 -0700)] 
Adding automatic iso parsing support for fractional seconds and timezone as 'Z'

#295

13 years agoAdding travis.yml to hot fix branch
Tim Wood [Mon, 30 Apr 2012 17:31:49 +0000 (10:31 -0700)] 
Adding travis.yml to hot fix branch

13 years agomoment.utc() should use current time if no parameters were passed in.
Tim Wood [Mon, 30 Apr 2012 16:06:28 +0000 (09:06 -0700)] 
moment.utc() should use current time if no parameters were passed in.

#291

13 years agoFixing unit test deprecation from 9f92c1876a7d862499704eebd27a6c315d21d873
Tim Wood [Fri, 27 Apr 2012 16:38:37 +0000 (09:38 -0700)] 
Fixing unit test deprecation from 9f92c1876a7d862499704eebd27a6c315d21d873

13 years agoAdding 1.6.0 and 1.6.1 to the file size history script
Tim Wood [Fri, 27 Apr 2012 00:32:52 +0000 (17:32 -0700)] 
Adding 1.6.0 and 1.6.1 to the file size history script

13 years agoSwitching to singular form for startOf/endOf
Tim Wood [Fri, 27 Apr 2012 00:30:04 +0000 (17:30 -0700)] 
Switching to singular form for startOf/endOf

#283

13 years agoMerge pull request #283 from mattiasrunge/develop
Tim Wood [Fri, 27 Apr 2012 00:19:33 +0000 (17:19 -0700)] 
Merge pull request #283 from mattiasrunge/develop

Added generic functions endOf and startOf

13 years agoAdding travis.yml
Tim Wood [Thu, 26 Apr 2012 22:45:04 +0000 (15:45 -0700)] 
Adding travis.yml

13 years agoMerge branch 'develop'
Tim Wood [Thu, 26 Apr 2012 22:37:17 +0000 (15:37 -0700)] 
Merge branch 'develop'

13 years agoMinifying 1.6.1 release 1.6.1
Tim Wood [Thu, 26 Apr 2012 22:34:45 +0000 (15:34 -0700)] 
Minifying 1.6.1 release

13 years agoMerge branch 'hotfix/1.6.1' into develop
Tim Wood [Thu, 26 Apr 2012 22:28:15 +0000 (15:28 -0700)] 
Merge branch 'hotfix/1.6.1' into develop

13 years agoMerge branch 'hotfix/1.6.1'
Tim Wood [Thu, 26 Apr 2012 22:27:58 +0000 (15:27 -0700)] 
Merge branch 'hotfix/1.6.1'

13 years agoBumping version number for hotfix
Tim Wood [Thu, 26 Apr 2012 22:27:37 +0000 (15:27 -0700)] 
Bumping version number for hotfix

13 years agoEmergency patch for 1.6.0
Tim Wood [Thu, 26 Apr 2012 22:25:12 +0000 (15:25 -0700)] 
Emergency patch for 1.6.0

Gah, some commits got overwritten…

13 years agoAdding readme for 1.6.0
Tim Wood [Thu, 26 Apr 2012 20:53:03 +0000 (13:53 -0700)] 
Adding readme for 1.6.0

13 years agoMerge branch 'master' of https://github.com/timrwood/moment 1.6.0
Tim Wood [Thu, 26 Apr 2012 16:36:18 +0000 (09:36 -0700)] 
Merge branch 'master' of https://github.com/timrwood/moment

13 years agoMerging in version 1.6.0
Tim Wood [Thu, 26 Apr 2012 16:36:12 +0000 (09:36 -0700)] 
Merging in version 1.6.0

13 years agoUpdating version number to 1.6.0 in preparation for the release.
Tim Wood [Thu, 26 Apr 2012 00:20:53 +0000 (17:20 -0700)] 
Updating version number to 1.6.0 in preparation for the release.

13 years agoAdding make size-history to compare file size to previous versions
Tim Wood [Wed, 25 Apr 2012 01:04:38 +0000 (18:04 -0700)] 
Adding make size-history to compare file size to previous versions

13 years agoFixing bug where moment.utc(isostringwithoutzone) does not parse as utc
Tim Wood [Wed, 25 Apr 2012 00:17:27 +0000 (17:17 -0700)] 
Fixing bug where moment.utc(isostringwithoutzone) does not parse as utc

#275

13 years agoMerging in changes for 1.5.2
Tim Wood [Mon, 23 Apr 2012 23:25:34 +0000 (16:25 -0700)] 
Merging in changes for 1.5.2

13 years agoChanged startOf method to use a switch with fallthrough as suggested by timrwood... 283/head
Mattias Runge [Mon, 23 Apr 2012 19:14:30 +0000 (21:14 +0200)] 
Changed startOf method to use a switch with fallthrough as suggested by timrwood, added /* falls through */ comments to pass JSHint

13 years agoAdded generic functions for end of and start of for years, months, days, hours, minut...
Mattias Runge [Mon, 23 Apr 2012 18:19:39 +0000 (20:19 +0200)] 
Added generic functions for end of and start of for years, months, days, hours, minutes and seconds.

13 years agoFixing swedish grammar #260
Tim Wood [Mon, 23 Apr 2012 17:52:06 +0000 (10:52 -0700)] 
Fixing swedish grammar #260

13 years agoSwitching to using durations and moments in add/subtract private function
Tim Wood [Mon, 23 Apr 2012 17:40:05 +0000 (10:40 -0700)] 
Switching to using durations and moments in add/subtract private function

13 years agoMerging in durations into develop branch
Tim Wood [Mon, 23 Apr 2012 17:12:03 +0000 (10:12 -0700)] 
Merging in durations into develop branch

13 years agoadding ds_store to gitignore
Tim Wood [Mon, 16 Apr 2012 18:47:32 +0000 (11:47 -0700)] 
adding ds_store to gitignore

13 years agoAdding tests for eod on utc mode
Tim Wood [Mon, 16 Apr 2012 18:47:17 +0000 (11:47 -0700)] 
Adding tests for eod on utc mode

13 years agoAdded the asYear, asMonth, etc. getters to Durations 265/head
Rocky Meza [Sun, 15 Apr 2012 09:20:35 +0000 (03:20 -0600)] 
Added the asYear, asMonth, etc. getters to Durations

13 years agoInstituted bubbling for Durations
Rocky Meza [Sun, 15 Apr 2012 08:41:21 +0000 (02:41 -0600)] 
Instituted bubbling for Durations

This is according to the discussion in #265.

13 years agoensure that you can create durations from an actual duration object
Rocky Meza [Sun, 15 Apr 2012 06:23:27 +0000 (00:23 -0600)] 
ensure that you can create durations from an actual duration object

13 years agoAdded getters to the Duration prototype.
Rocky Meza [Sun, 15 Apr 2012 06:20:21 +0000 (00:20 -0600)] 
Added getters to the Duration prototype.

These can serve as encapsulation to protect from future possible changes
in internal representation.

13 years agoDeprecating format tokens `z zz`
Tim Wood [Wed, 11 Apr 2012 04:01:05 +0000 (21:01 -0700)] 
Deprecating format tokens `z zz`

#227

13 years agodeprecating moment.fn.native
Tim Wood [Wed, 11 Apr 2012 04:00:33 +0000 (21:00 -0700)] 
deprecating moment.fn.native

#216

13 years agoFixing merge conflicts with feature/parser branch
Tim Wood [Wed, 11 Apr 2012 03:58:24 +0000 (20:58 -0700)] 
Fixing merge conflicts with feature/parser branch

13 years agoAdding deprecation notes to read me for 1.6.0
Tim Wood [Wed, 11 Apr 2012 03:56:05 +0000 (20:56 -0700)] 
Adding deprecation notes to read me for 1.6.0

13 years agoSwitching to formatting token regex to save filesize.
Tim Wood [Wed, 11 Apr 2012 03:21:40 +0000 (20:21 -0700)] 
Switching to formatting token regex to save filesize.

13 years agoAdding millisecond parsing tests
Tim Wood [Wed, 11 Apr 2012 03:13:20 +0000 (20:13 -0700)] 
Adding millisecond parsing tests