Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirishu10/simple-date-time
Simple and very helpful package to get the Date Time functionality
https://github.com/hirishu10/simple-date-time
am clock date datetime git hour minute nodejs npm pm react react-native second time vercel
Last synced: about 1 month ago
JSON representation
Simple and very helpful package to get the Date Time functionality
- Host: GitHub
- URL: https://github.com/hirishu10/simple-date-time
- Owner: hirishu10
- License: mit
- Created: 2022-03-15T16:03:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-15T07:45:13.000Z (over 1 year ago)
- Last Synced: 2024-09-13T13:12:29.362Z (2 months ago)
- Topics: am, clock, date, datetime, git, hour, minute, nodejs, npm, pm, react, react-native, second, time, vercel
- Language: TypeScript
- Homepage: https://simpledt.netlify.app/
- Size: 105 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @hirishu10/simple-date-time
> Read the Official Documentation at → [https://simpledt.netlify.app/](https://simpledt.netlify.app/)
## Changelog v.2.0.0
- Major changes for version **v.2.0.0**
- Two new **Function/Hooks** added:
- `getCustomMonth();`
- `getCustomYear();`
- ## Some flag has been added, deprecated and modified. [#ref](https://simpledt.netlify.app/docs/intro#method-and-props-configuration)
- Custom function/hook **`getCustomDTFormatter().format();`** introduced for better formatting.
- `getCustomDTFormatter(dateValue?)` - If you want to use the old date please provide an unix value inside the dateValue.
- `format(formatValue, insertCharacters?)`
- You have to pass `formatValue` ([Please read the Method and Props Config](https://simpledt.netlify.app/docs/intro#method-and-props-configuration)), Note: **\*add** space after each char.
- `insertCharacters` is totally optional, if you need to provide a character at the end of each **_formatValue_** character, you can add it.