Login About Gallery
Utility: Time of Day Name
COMMENT
Takes input of type Date and returns a Dicrionary "Time of Day" with values in "Literal" (e.g. "morning"), "Reference" (e.g. "this morning", "today"), "Greeting" (e.g. replace "night" with "evening" for use in "good evening" when "good night" implies a farewell), and "Farewell" (e.g. replace "evening" with "night", "afternoon" with "day" to track with conventional use). Based on reasonably common American greetings and notions of when to use words for different parts of the day. Alter as you see fit.
VARIABLES
Set variable
Input Date
to
Input
DATE
Specified Date
Today, 12:00 AM
CALENDAR
Get time between
First Date
and
Second Date
in
Minutes
MATHS
Options Under Construction
MATHS
Options Under Construction
VARIABLES
Set variable
Minutes From Midnight
to
Input
SCRIPTING
If
Input
Condition
TEXT
night
VARIABLES
Set variable
Time Literal
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
evening
VARIABLES
Set variable
Time Literal
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
afternoon
VARIABLES
Set variable
Time Literal
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
day
Otherwise
SCRIPTING
If
Input
Condition
TEXT
morning
VARIABLES
Set variable
Time Literal
to
Input
Otherwise
TEXT
night
VARIABLES
Set variable
Time Literal
to
Input
End If
End If
End If
End If
End If
VARIABLES
Get
Time Literal
SCRIPTING
If
Input
Condition
TEXT
this morning
VARIABLES
Set variable
Time Referential
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
today
VARIABLES
Set variable
Time Referential
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
this afternoon
VARIABLES
Set variable
Time Referential
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
this evening
VARIABLES
Set variable
Time Referential
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
tonight
VARIABLES
Set variable
Time Referential
to
Input
End If
End If
End If
End If
End If
VARIABLES
Get
Time Literal
VARIABLES
Set variable
Time Greeting
to
Input
SCRIPTING
If
Input
Condition
TEXT
evening
VARIABLES
Set variable
Time Greeting
to
Input
End If
VARIABLES
Get
Time Literal
VARIABLES
Set variable
Time Farewell
to
Input
SCRIPTING
If
Input
Condition
TEXT
day
VARIABLES
Set variable
Time Farewell
to
Input
Otherwise
SCRIPTING
If
Input
Condition
TEXT
day
VARIABLES
Set variable
Time Farewell
to
Input
End If
End If
DICTIONARY
Literal
Time Literal
Reference
Time Referential
Greeting
Time Greeting
Farewell
Time Farewell

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0