ShareShortcuts
Fazer fork de “Date Module”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que shortgram receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
59K
Salvo
0
Ações
18
Categoria
Utilities
Versão
3.1
Idioma
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

Novidades

Versão 3.1

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

Histórico de versões
3.1 8 de fev de 2022

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

3.0 29 de mai de 2020

Instead of date_me and time_me it is now date_med and time_med

2.1 21 de mai de 2020

Updated comments

2.0 21 de mai de 2020

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

1.0 21 de mai de 2020

First release

O que ele faz

18 ações
  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

Ver como código
Beta

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

Ver tudo

Você também pode gostar

Ver tudo
Publicidade