Click or drag to resize
SbTime Structure
Class for representation of a time.

This class represents and performs operations on time. Operations may be done in seconds, seconds and microseconds, or using DateTime.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.1.0.Release.36362e8575cf2e38cd7d69b9ff35aeb6cc000cdb
Syntax
public struct SbTime

The SbTime type exposes the following members.

Constructors
  NameDescription
Public methodSbTime(DateTime)
Constructor taking DateTime.
Public methodSbTime(Double)
Constructor taking seconds.
Public methodSbTime(Int64, Int64)
Constructor taking seconds and microseconds.
Top
Methods
  NameDescription
Public methodEquals
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for the value of this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetMsecValue
Returns time in milliseconds.
Public methodStatic memberGetTimeOfDay
Get the current time (seconds since Jan 1, 1970).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns time in seconds as a double.
Public methodGetValue(DateTime)
Gets time in a DateTime structure.
Public methodGetValue(Int64, Int64)
Get time in seconds and microseconds.
Public methodStatic memberMaxTime
Get a time far, far into the future.
Public methodSetMsecValue
Set time from milliseconds.
Public methodSetToTimeOfDay
Set to the current time.
Public methodSetValue(DateTime)
Set time from a struct timeval.
Public methodSetValue(Double)
Set time from a double (in seconds).
Public methodSetValue(Int64, Int64)
Set time from seconds + microseconds.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Additive (+) operator. Performs the addition between the times t1 and t2.
Public operatorStatic memberDivision(SbTime, SbTime)
The division operator (/). Division by another time.
Public operatorStatic memberDivision(SbTime, Double)
The division operator (/). Division by scalar.
Public operatorStatic memberEquality
The equality operator.
Public operatorStatic member(SbTime to DateTime)
Explicit cast operator to convert an SbTime to a System.DateTime
Public operatorStatic memberGreaterThan
Relational (greater than) operator.
Public operatorStatic memberGreaterThanOrEqual
Relational (greater than or equal to) operator.
Public operatorStatic memberInequality
The inequality operator.
Public operatorStatic memberLessThan
Relational (less than) operator.
Public operatorStatic memberLessThanOrEqual
Relational (less than or equal to) operator.
Public operatorStatic memberModulus
Modulus for two times (remainder when t1 is divided by t2).
Public operatorStatic memberMultiply(Double, SbTime)
The multiplication operator (*). Multiplication by scalar.
Public operatorStatic memberMultiply(SbTime, Double)
The multiplication operator (*). Multiplication by scalar.
Public operatorStatic memberSubtraction
Subtraction (–) operator. Performs the difference between the times t0 and t1.
Public operatorStatic memberUnaryNegation
The unary negation operator (-).
Top
Fields
  NameDescription
Public fieldStatic memberZero
Zero time.
Top
See Also