ShareShortcuts
Bifurcar “Date Module”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que shortgram reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
59K
Guardado
0
Acciones
18
Categoría
Utilities
Versión
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

Novedades

Versión 3.1

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

Historial de versiones
3.1 8 de feb. de 2022

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

3.0 29 de may. de 2020

Instead of date_me and time_me it is now date_med and time_med

2.1 21 de may. de 2020

Updated comments

2.0 21 de may. 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 may. de 2020

First release

Qué hace

18 acciones
  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 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

Ver todo

También te puede gustar

Ver todo
Publicidad