C# OJAI Client API
MapRDB.Driver.Ojai.OjaiInterval Class Reference

Public Member Functions

 OjaiInterval (long milliseconds)
 
 OjaiInterval (String iso8601DurationPattern)
 
 OjaiInterval (int years, int months, int days, int seconds, int milliseconds)
 
override int GetHashCode ()
 
override bool Equals (Object obj)
 

Properties

int Years [get, private set]
 The years value of this OjaiInterval. More...
 
int Months [get, private set]
 The month value of this OjaiInterval. More...
 
int Days [get, private set]
 The days value of this OjaiInterval. More...
 
int Seconds [get, private set]
 The seconds value of this OjaiInterval. More...
 
int Milliseconds [get, private set]
 The milliseconds value of this OjaiInterval. More...
 
long TimeDuration [get, private set]
 Returns the value of this duration in milliseconds computed from individual fields.This value will be approximate if months or years field of this interval is non-zero. More...
 

Static Private Attributes

static double ApproxDaysInYear = ((365 * 4) + 1) / 4.0
 
static double ApproxDaysInMonth = ApproxDaysInYear / 12
 
static int MillisecondsPerSecond = 1000
 
static int MillisecondsPerMinute = 60 * MillisecondsPerSecond
 
static int MillisecondsPerHour = 60 * MillisecondsPerMinute
 
static int MillisecondsPerDay = 24 * MillisecondsPerHour
 

Property Documentation

◆ Days

int MapRDB.Driver.Ojai.OjaiInterval.Days
getprivate set

The days value of this OjaiInterval.

◆ Milliseconds

int MapRDB.Driver.Ojai.OjaiInterval.Milliseconds
getprivate set

The milliseconds value of this OjaiInterval.

◆ Months

int MapRDB.Driver.Ojai.OjaiInterval.Months
getprivate set

The month value of this OjaiInterval.

◆ Seconds

int MapRDB.Driver.Ojai.OjaiInterval.Seconds
getprivate set

The seconds value of this OjaiInterval.

◆ TimeDuration

long MapRDB.Driver.Ojai.OjaiInterval.TimeDuration
getprivate set

Returns the value of this duration in milliseconds computed from individual fields.This value will be approximate if months or years field of this interval is non-zero.

◆ Years

int MapRDB.Driver.Ojai.OjaiInterval.Years
getprivate set

The years value of this OjaiInterval.