SimpleTime Structure Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

This class represents a 24 hour time format used by the Schedule class.

Namespace: ContentStudio.Document.Subscription
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public struct SimpleTime : IComparable, 
	IComparable<SimpleTime>

The SimpleTime type exposes the following members.

Constructors

  NameDescription
Public methodSimpleTime(Int32)
Initializes a new SimpleTime.
Public methodSimpleTime(Int32, Int32)
Initializes a new SimpleTime.
Top
Properties

  NameDescription
Public propertyHours
Gets the hour represented by this instance.
Public propertyMinutes
Gets the minute represented by this instance.
Public propertyStatic memberNow
Gets a SimpleTime that represents the current time of the day.
Top
Methods

  NameDescription
Public methodAddHours
Adds a specific number of hours to this instance. This operation must not result in a value that exceeds MaxValue (23:59) or is less than MinValue (00:00)
Public methodAddMinutes
Adds a specific number of minutes to this instance. This operation must not result in a value that exceeds MaxValue (23:59) or is less than MinValue (00:00)
Public methodCompareTo(Object)
Compares the current SimpleTime with another SimpleTime.
Public methodCompareTo(SimpleTime)
Compares the current SimpleTime with another SimpleTime.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(SimpleTime)
Indicates whether this instance and another SimpleTime are equal.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodToString
Returns the string representation (in the 24 hour format) of this instance using the current culture info.
(Overrides ValueTypeToString.)
Public methodToString(CultureInfo)
Returns the string representation (in the 24 hour format) of this instance using the specified culture info.
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Indicates whether two SimpleTime instances are equal.
Public operatorStatic member(SimpleTime to TimeSpan)
Performs an explicit conversion from SimpleTime to TimeSpan.
Public operatorStatic memberGreaterThan
Indicates whether a SimpleTime is greater than another see SimpleTime.
Public operatorStatic memberGreaterThanOrEqual
Indicates whether a SimpleTime is greater than or equal to another see SimpleTime.
Public operatorStatic memberInequality
Indicates whether two SimpleTime instances are unequal.
Public operatorStatic memberLessThan
Indicates whether a SimpleTime is less than another see SimpleTime.
Public operatorStatic memberLessThanOrEqual
Indicates whether a SimpleTime is less than or equal to another see SimpleTime.
Top
Fields

  NameDescription
Public fieldStatic memberMaxHour
Indicates the maximum value allowed for the hour part. This constant has the value 23.
Public fieldStatic memberMaxMinute
Indicates the maximum value allowed for the minute part This constant has the value 59.
Public fieldStatic memberMaxValue
Defines the maximum allowed value for this type (23:59)
Public fieldStatic memberMinHour
Indicates the minimum value allowed for the hour part This constant has the value 0.
Public fieldStatic memberMinMinute
Indicates the minimum value allowed for the minute part This constant has the value 0.
Public fieldStatic memberMinValue
Defines the minimum allowed value for a SimpleTime. This value is equal to Zero.
Public fieldStatic memberZero
Defines a SimpleTime with a zero value (00:00) . This value is equal to MinValue.
Top
See Also

Reference