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
Novidades
Versão 3.1
Updated comment, variable names, and the shortcut for iOS 15
O que ele faz
18 ações-
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
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#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 {
}
}
}
}
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de shortgram
Você também pode gostar
Publicidade