Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uhyo/eternal-summer-vacation
https://github.com/uhyo/eternal-summer-vacation
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/uhyo/eternal-summer-vacation
- Owner: uhyo
- Created: 2021-09-01T09:03:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T14:30:58.000Z (over 2 years ago)
- Last Synced: 2024-09-17T00:25:55.769Z (about 2 months ago)
- Language: TypeScript
- Size: 156 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# eternal-summer-vacation
```sh
npm install eternal-summer-vacation
```In Japan, some people stray off into August 32nd. This is believed to be the result of thaumatologic act taken by students who make resistance against arrival of September 1st, which is the date of the end of their summer vacation.
To help victims of the incident, eternal-summer-vacation provides a [Temporal](https://tc39.es/proposal-temporal/docs/) calendar that supports August 32nd and following dates. Instead of transitioning to September and so on, eternal-summer-vacation suports dates up to August 153rd.
## Usage
```ts
import { Temporal } from "@js-temporal/polyfill";
import { eternalSummerVacationCalendar } from "eternal-summer-vacation";const today = Temporal.PlainDate.from("2021-08-31").withCalendar(
eternalSummerVacationCalendar
);const tomorrow = today.plus(1);
console.log(tomorrow.month, tomorrow.date); // 8, 32 ← Hooray!
```## Example
Simple Endless Summer Vacation Calendar made with React
https://codesandbox.io/s/eternal-summer-vacation-qctks?file=/src/App.tsx
## License
MIT
## Contributing
Welcome