|
Download wp-calypso/packages/components/src/time-since/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/time-since/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/time-since/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/time-since/README.md
335 Bytes
| # Time Since | |
| Shows a date relative to now in a human friendly format. | |
| Updates the display as time progresses. | |
| ## Examples | |
| Under a minute: | |
| `Just now` | |
| Under a week: | |
| `20h ago` | |
| `5d ago` | |
| Over a week: | |
| `Oct 30, 2017` | |
| ## Props | |
| - `date`: Date, The date to show | |
| - `dateFormat`: String, Override the formatting of dates older than 1 week. | |