Scan with your iPhone to install
Preview
Calculate time between two dates.
What's New
Version 1.0
First release
What it does
11 actions-
Choose from Menu
-
Choose from MenuJust date
-
Ask for Input
-
Ask for Input
-
Get Time Between Dates
-
Show Result
-
Choose from MenuDate and time
-
Ask for Input
-
Ask for Input
-
Get Time Between Dates
-
Show Result
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color darkblue
#define glyph timerSquare
menu nil {
item "Just date":
const DateOne = prompt("", "Date")
const DateTwo = prompt("", "Date")
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{DateTwo}",
"WFTimeUntilFromDate": "{DateOne}",
"WFTimeUntilUnit": "Ask"
})
show()
item "Date and time":
const DateAndTimeOne = prompt("", "Date and Time")
const DateAndTimeTwo = prompt("", "Date and Time")
rawAction("is.workflow.actions.gettimebetweendates", {
"WFInput": "{DateAndTimeTwo}",
"WFTimeUntilFromDate": "{DateAndTimeOne}",
"WFTimeUntilUnit": "Ask"
})
show()
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by arirafiq
You Might Also Like
Advertisement