当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 2 Fork 0

Rysis / TimestampConversion
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

TimestampConversion | 基于Alfred3的时间戳与时间字符串转换

简介

直接下载 Timestamp Tools.alfredworkflow 文件双击即可使用

或者有其它需求可以下载Python的源码,修改后再在新建的workflow所在的文件夹下面粘贴即可。


更新日志

  • 2019-05-09
    • 1.0版本代码初次上传

使用介绍

1. 默认情况

先打开搜索框后,输入 stt ,即可看到当前时间的字符串形式和时间戳(毫秒和秒),在选项上回车即可复制结果

快捷键方式。可以使用 option + t 的方式直接打开转换的输入框。 如果当前有选中的文本,直接使用快捷键 option + t 会直接返回处理的结果。

ps: [2019-05-09]正常情况是可以获取到当前选中的内容,然后通过快捷键直接复制上的。但是不知道为什么本地测试不行? 是我电脑的alfred权限设置的问题。。。/笑哭

2. 时间戳转时间

输入 stt + 时间戳(秒和毫秒均可识别) ,即会默认转换成 yyyy-MM-dd HH:mm:ssyyyyMMdd HH:mm:ss 两种时间格式的字符串

3. 时间转时间戳

输入 stt + 时间字符串(指定格式) ,即会默认转换成毫秒时间戳形式

yyyy-MM-dd HH:mm:ss 格式的例子

可识别的格式列表

  • yyyyMMdd HH:mm:ss
  • yyyy-MM-dd %H:mm:ss
  • yyyyMMdd %H:mm:ss
  • yyyy/MM/dd %H:mm:ss
  • yyyy.MM.dd %H:mm:
  • yyyy-MM-dd
  • yyyyMMdd
  • yyyy/MM/dd
  • yyyy.MM.dd

使用的库和参考

  1. alfred.py - https://github.com/nikipore/alfred-python

License

MIT ©

MIT License Copyright (c) 2019 Rysis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Alfred Workflow 的时间戳和常用时间格式字符串转换 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/Rysis/TimestampConversion.git
git@gitee.com:Rysis/TimestampConversion.git
Rysis
TimestampConversion
TimestampConversion
master

搜索帮助