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
Nyheder
Version 3.1
Updated comment, variable names, and the shortcut for iOS 15
Hvad den gør
18 handlinger-
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
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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 {
}
}
}
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra shortgram
Du vil måske også kunne lide
Annonce