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
Novedades
Versión 3.1
Updated comment, variable names, and the shortcut for iOS 15
Qué hace
18 acciones-
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 las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo 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 en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de shortgram
También te puede gustar
Publicidad