Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuchunyang/emacs-speeddating
Increase date and time at point
https://github.com/xuchunyang/emacs-speeddating
Last synced: about 1 month ago
JSON representation
Increase date and time at point
- Host: GitHub
- URL: https://github.com/xuchunyang/emacs-speeddating
- Owner: xuchunyang
- License: gpl-3.0
- Created: 2018-03-15T08:44:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-25T04:49:00.000Z (almost 7 years ago)
- Last Synced: 2024-10-16T01:45:55.280Z (3 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 75.2 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `speeddating.el` [![MELPA badge][melpa-badge]][melpa-link] [![Travis CI Build Status][travis-badge]][travis-link]
[melpa-link]: https://melpa.org/#/speeddating
[melpa-badge]: https://melpa.org/packages/speeddating-badge.svg
[travis-link]: https://travis-ci.org/xuchunyang/emacs-speeddating
[travis-badge]: https://travis-ci.org/xuchunyang/emacs-speeddating.svg?branch=masterIncrease date and time at point.
For example, saying point is on `31`, `M-x speeddating-increase` will change
Fri, 31 Dec 1999 15:00:00 +0800
into
Sat, 01 Jan 2000 15:00:00 +0800
## Requirement
Emacs 25.1 or newer
## Date and time formats
`speeddating.el` supports date and time formats in the user option
`speeddating-formats`, the formats use a subset syntax of
[`format-time-string`](https://www.gnu.org/software/emacs/manual/html_node/elisp/Time-Parsing.html).
Currently, the following formats are supported out of box.| Format | Example |
|----------------------------|---------------------------------|
| `%a, %d %b %Y %H:%M:%S %z` | Sun, 18 Mar 2018 20:37:23 +0800 |
| `%a %b %d %H:%M:%S %Y %z` | Sun Mar 18 20:37:23 2018 +0800 |
| `%Y-%m-%dT%H:%M:%S%:z` | 2018-03-18T20:37:23+08:00 |
| `%a %b %_d %H:%M:%S %Z %Y` | Sun Mar 18 20:37:23 CST 2018 |
| `%Y-%m-%d %H:%M:%S` | 2018-03-18 20:37:23 |
| `%Y-%m-%d %H:%M` | 2018-03-18 20:37 |
| `%A, %B %d, %Y` | Sunday, March 18, 2018 |
| `%d %B %Y` | 18 March 2018 |
| `%d %b %Y` | 18 Mar 2018 |
| `%B %-d, %Y` | March 18, 2018 |
| `%Y-%m-%d` | 2018-03-18 |
| `%Y/%m/%d` | 2018/03/18 |
| `%H:%M:%S` | 20:37:23 |
| `%A` | Sunday |