mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-27 14:57:37 +00:00
remove deprecated getLocalizedStrftime alias
This commit is contained in:
parent
64e4ed4834
commit
71195bba88
3 changed files with 3 additions and 8 deletions
|
|
@ -42,8 +42,6 @@ And if you don't want to pass a localization object every time you can get a loc
|
||||||
|
|
||||||
For details just see `man 3 strftime` as the format specifiers are identical.
|
For details just see `man 3 strftime` as the format specifiers are identical.
|
||||||
|
|
||||||
**NOTE:** `getLocalizedStrftime` is deprecated, use `localizedStrftime` instead. `getLocalizedStrftime` will be removed in 0.5 or 0.6.
|
|
||||||
|
|
||||||
|
|
||||||
Contributors
|
Contributors
|
||||||
============
|
============
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,7 @@
|
||||||
namespace.strftime = strftime;
|
namespace.strftime = strftime;
|
||||||
namespace.strftimeUTC = strftimeUTC;
|
namespace.strftimeUTC = strftimeUTC;
|
||||||
namespace.localizedStrftime = localizedStrftime;
|
namespace.localizedStrftime = localizedStrftime;
|
||||||
namespace.getLocalizedStrftime = function(locale) {
|
|
||||||
console.log('[strftime] DEPRECATION NOTICE: getLocalizedStrftime is deprecated, use localizedStrftime instead');
|
|
||||||
return (namespace.getLocalizedStrftime = localizedStrftime)(locale);
|
|
||||||
};
|
|
||||||
////
|
////
|
||||||
|
|
||||||
function words(s) { return (s || '').split(' '); }
|
function words(s) { return (s || '').split(' '); }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// Based on CoffeeScript by andrewschaaf on github
|
// Based on CoffeeScript by andrewschaaf on github
|
||||||
|
//
|
||||||
// TODO:
|
// TODO:
|
||||||
// - past and future dates, especially < 1900 and > 2100
|
// - past and future dates, especially < 1900 and > 2100
|
||||||
// - locales
|
// - locales
|
||||||
|
|
@ -32,7 +32,7 @@ assert.format = function(format, expected, expectedUTC, time) {
|
||||||
/// check exports
|
/// check exports
|
||||||
assert.fn(lib.strftime)
|
assert.fn(lib.strftime)
|
||||||
assert.fn(lib.strftimeUTC)
|
assert.fn(lib.strftimeUTC)
|
||||||
assert.fn(lib.getLocalizedStrftime)
|
assert.fn(lib.localizedStrftime)
|
||||||
|
|
||||||
/// time zones
|
/// time zones
|
||||||
testTimezone('P[DS]T')
|
testTimezone('P[DS]T')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue