Platforms to show: All Mac Windows Linux Cross-Platform

SQLIntervalMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class in the SQL Plugin for an interval.
Example
// calculate with time intervals, e.g. for interval columns in PostgreSQL or Oracle
Var a As New SQLIntervalMBS(1, 2, 30, 0) // 1 day, 2 hours, 30 minutes
Var b As New SQLIntervalMBS(0, 12, 0, 0) // 12 hours
a.Inc b

MessageBox "Total: " + Format(a.TotalHours, "0.0") + " hours = " + a.Days.ToString + " days " + a.Hours.ToString + " hours " + a.Minutes.ToString + " minutes"

// use it as parameter: cmd.Param("duration").setAsInterval a
  • 11 properties
  • 6 methods
    • method Constructor
    • method Constructor(days as Integer, hours as Integer, minutes as Integer, seconds as Integer = 0, NanoSeconds as Integer = 0)
    • method Constructor(value as Double)
    • method Dec(interval as SQLIntervalMBS)
    • method Inc(interval as SQLIntervalMBS)
    • method SetInterval(days as Integer, hours as Integer, minutes as Integer, seconds as Integer = 0, NanoSeconds as Integer = 0)

This class has no subclasses.

Some methods using this class:

Some related classes:


The items on this page are in the following plugins: MBS SQL Plugin.


SQLGlobalsMBS   -   SQLite3BackupMBS


The biggest plugin in space...