To use the module you put inside your shortcut:
Text (for the format you want like time or date)
Run shortcut with text for input
Что нового
Версия 3.1
Updated comment, variable names, and the shortcut for iOS 15
Что делает
Действий: 18-
CommentTo use the module you put inside your shortcut: Text (for the format you want like time or date) Run shortcut with text for input Commands: time_sh date_sh time_med date_med
-
Text
-
Set VariableinputCommand
-
Date
-
Set VariablerightNow
-
If
-
Format Date
-
If
-
If
-
Format Date
-
If
-
If
-
Format Date
-
If
-
If
-
Format Date
-
If
-
Text
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/calendar'
#define color darkgray
#define glyph gear
/*
To use the module you put inside your shortcut:
Text (for the format you want like time or date)
Run shortcut with text for input
Commands:
time_sh
date_sh
time_med
date_med
*/
@inputCommand = "{ShortcutInput}"
currentDate()
@rightNow
if @inputCommand contains "time_sh" {
formatTimestamp(@rightNow, "None", "Short")
} else {
if @inputCommand contains "time_med" {
formatTimestamp(@rightNow, "None", "Medium")
} else {
if @inputCommand contains "date_sh" {
formatTime(@rightNow, "None")
} else {
if @inputCommand contains "date_med" {
formatTimestamp(@rightNow, "Medium", "None")
} else {
}
}
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от shortgram
Вам также может понравиться
Реклама