Luka-Era Date
A year-week calendar with epoch to the birthday of Luka Megurine.
Who is Luka Megurine
See Vocaloid CV03 And Luka V4X
About Luka-Era Date and Year-Week Calendar
-
The Luka-Era Date (LE-Date) consist of 4 parts as:
LE{YEAR}{WEEK}{DAY}
, for example:LE6005
-
The
LE
stands forLuka-Era
-
Field
{YEAR}
starts from 2009 which numbered as 0 -
Field
{WEEK}
starts from the week of dateJan 30
, numbered as 0 -
Field
{DAY}
starts from Sunday numbered as 0 -
The day before
Jan 30
counts in the 52th week if they're in the same week, andJan 30
resets the week number to 0, it means that week has two different week numbers before and afterJan 30
-
LE
or{DAY}
fields can be omitted for abbreviating asLE{Year}{Week}
or simply{YEAR}{WEEK}
Installation
npm install -g luka-era-date
Usage
Usage: luka-era-date [OPTIONS] [YYYY-MM-DD] ...
Convert datetime to Luka-Era date
Options:
-l --ledate LEDATE Get original datetime from LEDATE
-h --help Print this message
API
var LukaEraDate = date1 = // use current datetime date2 = '2015-01-30T00:00:00Z' // use specific date date3 = LukaEraDate // use LE-Date string date4 = LukaEraDate // or its abbreviation;console; // to string prefixed with 'LE'console; // to number consist of year + week + dayconsole; // the same as .toString()console; // the same as .valueOf()
License
The MIT License (MIT)
Copyright (c) 2009-2017, Nystearia nystearia@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.