ShareShortcuts
„Date Module“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit shortgram die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
59K
Gesichert
0
Aktionen
18
Kategorie
Utilities
Version
3.1
Sprache
EN

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

Neue Funktionen

Version 3.1

Updated comment, variable names, and the shortcut for iOS 15

Versionsverlauf
3.1 8. Feb 2022

Updated comment, variable names, and the shortcut for iOS 15

3.0 29. Mai 2020

Instead of date_me and time_me it is now date_med and time_med

2.1 21. Mai 2020

Updated comments

2.0 21. Mai 2020

Added medium date and time format and change the inputs to get the outputs also added default string return

1.0 21. Mai 2020

First release

Was er macht

18 Aktionen
  1. Comment
    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
  2. Text
  3. Set Variable
    inputCommand
  4. Date
  5. Set Variable
    rightNow
  6. If
  7. Format Date
  8. If
  9. If
  10. Format Date
  11. If
  12. If
  13. Format Date
  14. If
  15. If
  16. Format Date
  17. If
  18. Text

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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 {
			}
		}
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von shortgram

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung