Skip to content

Commit

Permalink
fix: 时间戳指令标准化
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Apr 18, 2021
1 parent a53c4c5 commit 3cdfedc
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 25 deletions.
18 changes: 11 additions & 7 deletions Modules/功能-秒打时间戳.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; ========== CapsLockX ==========
; 名称:快速输入各种时间戳
; 作者:snomiao
; 作者:snomiaou
; 联系:[email protected]
; 支持:https://github.com/snomiao/CapsLockX
; 版本:v2020.06.27
Expand All @@ -13,15 +13,19 @@ Return
FormatTime, TimeString, , yyyy-MM-dd-
SendInput {Text}%TimeString%
Return
:*:#T#::
FormatTime, TimeString, , yyyy-MM-dd HH:mm:ss
SendInput {Text}%TimeString%
Return
:*:#DD#::
FormatTime, DateString, , (yyyyMMdd)
SendInput {Text}%DateString%
Return
:*:#DS#::
FormatTime, TimeString, , yyyy-MM-dd HH:mm:ss
:*:#T#::
FormatTime, TimeString, , yyyyMMdd.HHmmss
SendInput {Text}%TimeString%
Return
:*:#T#::
FormatTime, TimeString, , (yyyyMMdd.HHmmss)
SendInput {Text}%TimeString%
Return
:*:#DT#::
FormatTime, TimeString, , yyyy-MM-dd HH:mm:ss
SendInput {Text}%TimeString%
Return
13 changes: 7 additions & 6 deletions Modules/功能-秒打时间戳.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# 秒打时间戳

| 模式 | 秒打时间戳 | 说明 |
| ---- | ---------- | --------------------------------------------- |
| 全局 | /d 或 (d | 插入日期, 类似 (20190115) 这样的时间戳 |
| 全局 | /t 或 (t | 插入时间, 类似 (20190115.164744) 这样的时间戳 |
| 全局 | /s 或 (s | 插入时间, 类似 (1647) 这样的时间戳 |
| 全局 | /v | 插入版本号, 类似 v2019.01.15 这样的版本号 |
| 模式 | 秒打时间戳 | 说明 |
| ---- | ---------- | --------------------------------------------------- |
| 全局 | #D# | 插入日期, 类似 2021-04-19- 这样的时间戳 |
| 全局 | #DD# | 插入日期, 类似 (20190115) 这样的时间戳 |
| 全局 | #T# | 插入日期时间, 类似 20190115.164744 这样的时间戳 |
| 全局 | #TT# | 插入日期时间, 类似 (20190115.164744) 这样的时间戳 |
| 全局 | #DT# | 插入日期时间, 类似 2021-04-19 04:30:35 这样的时间戳 |
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,13 @@ CapsLockX 默认加载了一些常用的模块,功能与使用方法已在下

### 秒打时间戳

| 模式 | 秒打时间戳 | 说明 |
| ---- | ---------- | --------------------------------------------- |
| 全局 | /d 或 (d | 插入日期, 类似 (20190115) 这样的时间戳 |
| 全局 | /t 或 (t | 插入时间, 类似 (20190115.164744) 这样的时间戳 |
| 全局 | /s 或 (s | 插入时间, 类似 (1647) 这样的时间戳 |
| 全局 | /v | 插入版本号, 类似 v2019.01.15 这样的版本号 |
| 模式 | 秒打时间戳 | 说明 |
| ---- | ---------- | ------------------------------------------------- |
| 全局 | #D# | 插入日期, 类似 这样的时间戳 |
| 全局 | #DD# | 插入日期, 类似 (20190115) 这样的时间戳 |
| 全局 | #DT# | 插入日期时间, 类似 (20190115.164744) 这样的时间戳 |
| 全局 | #DD# | 插入时间, 类似 (1647) 这样的时间戳 |
| 全局 | # | 插入版本号, 类似 v2019.01.15 这样的版本号 |

<!-- 模块文件名:应用-Anki增强.ahk-->

Expand Down
13 changes: 7 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,13 @@ CapsLockX 默认加载了一些常用的模块,功能与使用方法已在下

### 秒打时间戳

| 模式 | 秒打时间戳 | 说明 |
| ---- | ---------- | --------------------------------------------- |
| 全局 | /d 或 (d | 插入日期, 类似 (20190115) 这样的时间戳 |
| 全局 | /t 或 (t | 插入时间, 类似 (20190115.164744) 这样的时间戳 |
| 全局 | /s 或 (s | 插入时间, 类似 (1647) 这样的时间戳 |
| 全局 | /v | 插入版本号, 类似 v2019.01.15 这样的版本号 |
| 模式 | 秒打时间戳 | 说明 |
| ---- | ---------- | ------------------------------------------------- |
| 全局 | #D# | 插入日期, 类似 这样的时间戳 |
| 全局 | #DD# | 插入日期, 类似 (20190115) 这样的时间戳 |
| 全局 | #DT# | 插入日期时间, 类似 (20190115.164744) 这样的时间戳 |
| 全局 | #DD# | 插入时间, 类似 (1647) 这样的时间戳 |
| 全局 | # | 插入版本号, 类似 v2019.01.15 这样的版本号 |

<!-- 模块文件名:应用-Anki增强.ahk-->

Expand Down

0 comments on commit 3cdfedc

Please sign in to comment.