Skip to content

Conversation

@thiemowmde
Copy link
Contributor

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these not used anywhere? Also, is this change consistent with what we have in PHP?

And finally, is this really better? Sure, it's the same format, though is it how those things are normally written? I suspect not, which is supported by http://en.wiktionary.org/wiki/Gyr

+0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently these JavaScript constants are not used anywhere. They were just introduced in the unreleased 0.7.0.

PHP constants are named different, see https://gerrit.wikimedia.org/r/#/c/194306/. This is the main reason why I touch this: 1. PHP constants use lower (!) case characters. 2. PHP and JavaScript constants are named differently.

If there is a better naming scheme, I'm open for suggestions.

wmfgerrit pushed a commit to wikimedia/mediawiki-extensions-Wikibase that referenced this pull request Jun 26, 2015
This requires wmde/Time#42
and a new release of DataValues Time.

Same patch in JavaScript:
wmde/DataValuesJavaScript#68

Bug: T96685
Bug: T99911
Change-Id: I9489af3950c65620e007d739ca2e161e1a0a81e6
JonasKress added a commit that referenced this pull request Aug 6, 2015
Unify names of time precision constants
@JonasKress JonasKress merged commit d8747b1 into master Aug 6, 2015
@thiemowmde thiemowmde deleted the precisionConsts branch August 6, 2015 10:09
@JeroenDeDauw
Copy link
Contributor

Don't forget to update the release notes. And perhaps the @SInCE tag for the SELF.PRECISIONS constant should be updated as well

@JeroenDeDauw JeroenDeDauw mentioned this pull request Aug 6, 2015
@thiemowmde
Copy link
Contributor Author

Done in #83, thanks.

@thiemowmde thiemowmde added this to the 0.8.0 milestone Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants