Giter VIP home page Giter VIP logo

conversion-tools's Introduction

conversion-tools

用于时间戳和变量等的转换。。。

开发基于 PHP有道翻译api;

依赖

  • Alfred 3
  • PHP 5.6+

安装

点击下载

效果

时间转换

默认在alfred搜索框中输入关键字 “ts” ,显示当前时间戳和格式化后的时间。

ts.png

在关键字 “ts”后输入空格+要转换的时间,即可在列表中得到想要的时间格式,选中想要的格式,回车就复制到剪切板了。

ts time.png

获取 13 位微妙时间戳,用法同上,只是关键字为 “tsm”。

tsm.png

变量转换

在关键字 “var”后输入空格+ 中文变量名,即可在列表中得到想要的变量翻译和几种常见的变量形式,如驼峰和下划线等, 选中想要的格式,回车就复制到剪切板了。默认关键字 “var”后的参数“g”可不加

varDefault.png varG.png

在关键字 “var”后输入空格+ 参数“c” + 需要转换的变量名,即可得到另外几种不同形式的变量名。

varC.png

其他作品

time-conversion-alfredworkflow 用于时间戳和格式化时间的相互转换的小工具。

本工具结合了时间转换和变量转换。

conversion-tools's People

Contributors

kangzhi2016 avatar

Stargazers

 avatar

Watchers

 avatar

conversion-tools's Issues

macOS Monterey 12.1无法使用

PHP版本:8.1.1
Workflows debug:
[18:13:12.535] conversion tools[Script Filter] Queuing argument ''
[18:13:12.679] conversion tools[Script Filter] Script with argv '(null)' finished
[18:13:12.681] STDERR: conversion tools[Script Filter] mkdir: /Users/zeal/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data: No such file or directory
PHP Deprecated: SimpleXMLElement::addAttribute(): Passing null to parameter #2 ($value) of type ?string is deprecated in /Users/zeal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.33D0C656-44B2-4CBE-8F80-EF9786220BAC/workflows.php on line 197
PHP Deprecated: SimpleXMLElement::addAttribute(): Passing null to parameter #2 ($value) of type ?string is deprecated in /Users/zeal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.33D0C656-44B2-4CBE-8F80-EF9786220BAC/workflows.php on line 197
[18:13:12.682] conversion tools[Script Filter] Deprecated: SimpleXMLElement::addAttribute(): Passing null to parameter #2 ($value) of type ?string is deprecated in /Users/zeal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.33D0C656-44B2-4CBE-8F80-EF9786220BAC/workflows.php on line 197

Deprecated: SimpleXMLElement::addAttribute(): Passing null to parameter #2 ($value) of type ?string is deprecated in /Users/zeal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.33D0C656-44B2-4CBE-8F80-EF9786220BAC/workflows.php on line 197

<title>1641895992</title>2022-01-11 18:13:12icon.png<title>2022-01-11 18:13:12</title>1641895992icon.png
[18:13:12.683] ERROR: conversion tools[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Deprecated: SimpleXMLElement::addAttribute(): Passing null to parameter #2 ($value) of type ?string is deprecated in /Users/zeal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.33D0C656-44B2-4CBE-8F80-EF9786220BAC/workflows.php on line 197

Deprecated: SimpleXMLElement::addAttribute(): Passing null to parameter #2 ($value) of type ?string is deprecated in /Users/zeal/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.33D0C656-44B2-4CBE-8F80-EF9786220BAC/workflows.php on line 197

<title>1641895992</title>2022-01-11 18:13:12icon.png<title>2022-01-11 18:13:12</title>1641895992icon.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.