https://github.com/nextcloud-libraries/nextcloud-moment
Customized moment.js for Nextcloud https://npmjs.org/@nextcloud/moment
https://github.com/nextcloud-libraries/nextcloud-moment
nextcloud-plugin
Last synced: 11 months ago
JSON representation
Customized moment.js for Nextcloud https://npmjs.org/@nextcloud/moment
- Host: GitHub
- URL: https://github.com/nextcloud-libraries/nextcloud-moment
- Owner: nextcloud-libraries
- License: gpl-3.0
- Created: 2019-06-27T09:55:14.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-19T01:07:18.000Z (11 months ago)
- Last Synced: 2025-04-19T10:27:36.359Z (11 months ago)
- Topics: nextcloud-plugin
- Language: TypeScript
- Homepage: https://nextcloud-libraries.github.io/nextcloud-moment/
- Size: 5.25 MB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# @nextcloud/moment
[](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-moment)

[](https://www.npmjs.com/package/@nextcloud/moment)
[](https://nextcloud.github.io/nextcloud-moment/)
Customized [moment.js](https://momentjs.com/) for Nextcloud automatic locale detection.
## Installation
```
npm i -S @nextcloud/moment
```
## Usage
```js
import moment from '@nextcloud/moment'
moment(1578511019).format('L')
// -> returns date formatted in format according to user locale
```