Soulver 3 for Mac, iPad & iPhone
  • Frequently asked questions
  • Changelog
  • Request a new feature
  • What's new in Soulver 3?
  • Features
    • Getting Started
    • Totals & Subtotals
    • Line References
    • Variables
    • Formatting
      • Number Formats
      • Text Stying
      • Answer Formatting
    • Sheets & Files
      • Sheets
      • Sheetbooks
      • Soulver Files (.slvr)
    • Live Data
      • Weather
      • Stock Prices
      • Wolfram|Alpha (knowledge assistant)
    • Exporting
      • PDF & Printing
      • Soulver Studio
    • Integrations
      • Alfred & Raycast
      • macOS Services
      • URL Schemes
      • Terminal (CLI)
    • Tips & Tricks
      • Mac
      • iPad & iPhone
  • Syntax Reference
    • General
      • Operators
      • Rounding
      • Averages & Median
      • Logarithms & Roots
      • Trigonometry & Constants
      • Conditionals
      • Miscellaneous
    • Percentages
    • Units & Conversions
      • Converting Units
      • Currencies
      • Rates
      • Cooking Calculations
      • Unit Reference
      • Currency Reference
    • Dates
      • Calendar Calculations
      • Workdays & Weekdays
      • Timestamps & ISO8601
    • Time
      • Time Zone Conversions
      • Time Formats
      • Clock Time Calculations
      • Video Timecode & Frame Rates
    • Money & Finance
      • Compound Interest & Investments
      • Mortgage/Loan Repayments
  • Bases & Bitwise
  • Headings & Comments
  • Large Number Symbols
  • 🧪Experimental
    • Soulver X Series on GitHub
Powered by GitBook
On this page
  • Adding or subtracting time from a clock time
  • Finding the interval between two clock times
  • Ambiguity when using the minus (-) operator with clock times

Was this helpful?

  1. Syntax Reference
  2. Time

Clock Time Calculations

A clock time is a moment in time typically formatted with a colon (hh:mm)

Adding or subtracting time from a clock time

now + 3 hours 15 minutes                | 6:26 pm
9:45 am - 15 hours 10 minutes           | Yesterday at 6:35 pm
16:00 + 3 hours 12 minutes              | 7:12 pm

Daylight savings is taken into account when doing clock time calculations, and you might find unexpected results on days in which daylight savings time switches over.

Finding the interval between two clock times

7:30 to 20:45                           | 3 hours 15 min
4pm to 3am                              | 11 hours

Ambiguity when using the minus (-) operator with clock times

Sadly, the minus operator can be ambiguous when it comes to clock times.

Many of us use it to indicate a range of time from the first clock time to the second clock time (which is in the future):

5pm - 9pm (5pm to 9pm)

But many of us also use it to express a subtraction of second clock time from the first clock time:

5pm - 3pm (5pm minus 3pm)

Soulver does its best to try and interpret what you mean given the particular clock times you choose:

/// Get the amount of time between these two clock times today
5pm - 7pm                             | 2 hours
5pm - 2pm                             | 2 hours  

// This is interpreted as 4 pm today back to 3am earlier this morning
4pm - 3am                             | 13 hours

/// This is interpreted as 3am earlier this morning to 4pm today
3am - 4pm                             | 13 hours

Last updated 1 month ago

Was this helpful?

For the most predictable results, use the "to" operator as described in

Finding the Interval between two clock times.