https://github.com/celtian/fifadate
Utils for Fifa Soccer Game dates
https://github.com/celtian/fifadate
library typescript
Last synced: 4 months ago
JSON representation
Utils for Fifa Soccer Game dates
- Host: GitHub
- URL: https://github.com/celtian/fifadate
- Owner: Celtian
- License: mit
- Created: 2023-07-06T10:20:38.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-14T08:39:18.000Z (about 1 year ago)
- Last Synced: 2025-08-09T06:21:30.488Z (11 months ago)
- Topics: library, typescript
- Language: JavaScript
- Homepage:
- Size: 607 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
fifadate
[](https://badge.fury.io/js/fifadate)
[](https://www.npmjs.com/fifadate)
[](https://www.npmjs.com/fifadate)
[](https://github.com/celtian/fifadate/actions)
[](https://codecov.io/gh/celtian/fifadate/)
[](https://github.com/celtian/fifadate/)
[](https://github.com/celtian/fifadate/)
[](http://hits.dwyl.com/celtian/fifadate)
> Utils for Fifa Soccer Game dates
## 🛠️ Install
_Nodejs 12 or higher need to be installed first_
```terminal
npm install fifadate
```
or
```terminal
yarn add fifadate
```
## 🚀 Quick start
_Type this into your ts file._
```typescript
import 'fifadate'; // for es5
// or for es6
import { registerFifaDatePrototype } from 'fifadate';
registerFifaDatePrototype();
// usage
console.log(new Date('1970-01-01').toFifaDate()); // 141428
console.log(new Date('1970-01-01').addYear(1));
console.log(new Date('1970-01-01').age());
console.log(new Date('1970-01-01T03:00:00.000Z').normalize());
console.log(Date.fromFifaDate(141428)); // 1970-01-01
```
## 🪪 License
Copyright © 2023 - 2025 [Dominik Hladik](https://github.com/Celtian)
All contents are licensed under the [MIT license].
[mit license]: LICENSE