ShareShortcuts

Total Hours

calculates total hours

andris37
Fork “Total Hours”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so andris37 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
40K
Saved
0
Actions
16
Category
API
Version
1.0
Language
EN

calculates total hours

What's New

Version 1.0

First release

Version History
1.0 Jul 15, 2022

First release

What it does

16 actions
  1. Get Value
    dk.simonbs.DataJar
  2. Set Variable
    Mon
  3. Get Value
    dk.simonbs.DataJar
  4. Set Variable
    Tue
  5. Get Value
    dk.simonbs.DataJar
  6. Set Variable
    Wed
  7. Get Value
    dk.simonbs.DataJar
  8. Set Variable
    Thu
  9. Get Value
    dk.simonbs.DataJar
  10. Set Variable
    Fri
  11. Get Value
    dk.simonbs.DataJar
  12. Set Variable
    Sat
  13. Get Value
    dk.simonbs.DataJar
  14. Set Variable
    Sun
  15. Calculate Expression
  16. Set Value
    dk.simonbs.DataJar

View as code
Beta

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 speedometer

rawAction("dk.simonbs.DataJar.GetValueIntent", {
	"keyPath": "HP-Timesheet.Mon.time"
})
@Mon
rawAction("dk.simonbs.DataJar.GetValueIntent", {
	"keyPath": "HP-Timesheet.Tue.time"
})
@Tue
rawAction("dk.simonbs.DataJar.GetValueIntent", {
	"keyPath": "HP-Timesheet.Wed.time"
})
@Wed
rawAction("dk.simonbs.DataJar.GetValueIntent", {
	"keyPath": "HP-Timesheet.Thu.time"
})
@Thu
rawAction("dk.simonbs.DataJar.GetValueIntent", {
	"keyPath": "HP-Timesheet.Fri.time"
})
@Fri
rawAction("dk.simonbs.DataJar.GetValueIntent", {
	"keyPath": "HP-Timesheet.Sat.time"
})
@Sat
rawAction("dk.simonbs.DataJar.GetValueIntent", {
	"keyPath": "HP-Timesheet.Sun.time"
})
@Sun
const CalculationResult = (@Mon+@Tue+@Wed+@Thu+@Fri+@Sat+@Sun)/60
rawAction("dk.simonbs.DataJar.SetValueIntent", {
	"keyPath": "HP-Timesheet.Total Time",
	"values": "CalculationResult"
})
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

You Might Also Like

See All
Advertisement