Class NSFieldInfoTimeSpan
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Syntax
Constructors
NSFieldInfoTimeSpan()
Initializes a new instance of the NSFieldInfoTimeSpan class.
Declaration
NSFieldInfoTimeSpan
Methods
GetDefaultValue()
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Integer GetDefaultValue()
Returns
Type | Description |
---|---|
Integer | Default TimeSpan value, number of minutes. |
Examples
NSFieldInfoTimeSpan thing;
Integer defaultValue = thing.GetDefaultValue();
GetUseDays()
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Bool GetUseDays()
Returns
Type | Description |
---|---|
Bool | Should the time-span be counted in days? |
Examples
NSFieldInfoTimeSpan thing;
Bool useDays = thing.GetUseDays();
GetUseHours()
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Bool GetUseHours()
Returns
Type | Description |
---|---|
Bool | Should the time-span be counted in hours? |
Examples
NSFieldInfoTimeSpan thing;
Bool useHours = thing.GetUseHours();
GetUseMinutes()
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Bool GetUseMinutes()
Returns
Type | Description |
---|---|
Bool | Should the time-span be counted in minutes? |
Examples
NSFieldInfoTimeSpan thing;
Bool useMinutes = thing.GetUseMinutes();
SetDefaultValue(Integer)
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Void SetDefaultValue(Integer defaultValue)
Parameters
Type | Name | Description |
---|---|---|
Integer | defaultValue | Default TimeSpan value, number of minutes. |
Returns
Type | Description |
---|---|
Void |
Examples
NSFieldInfoTimeSpan thing;
Integer defaultValue;
thing.SetDefaultValue(defaultValue);
SetUseDays(Bool)
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Void SetUseDays(Bool useDays)
Parameters
Type | Name | Description |
---|---|---|
Bool | useDays | Should the time-span be counted in days? |
Returns
Type | Description |
---|---|
Void |
Examples
NSFieldInfoTimeSpan thing;
Bool useDays;
thing.SetUseDays(useDays);
SetUseHours(Bool)
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Void SetUseHours(Bool useHours)
Parameters
Type | Name | Description |
---|---|---|
Bool | useHours | Should the time-span be counted in hours? |
Returns
Type | Description |
---|---|
Void |
Examples
NSFieldInfoTimeSpan thing;
Bool useHours;
thing.SetUseHours(useHours);
SetUseMinutes(Bool)
Timespan custom database field. Number of minutes, represented as days/hours/minutes.
Declaration
Void SetUseMinutes(Bool useMinutes)
Parameters
Type | Name | Description |
---|---|---|
Bool | useMinutes | Should the time-span be counted in minutes? |
Returns
Type | Description |
---|---|
Void |
Examples
NSFieldInfoTimeSpan thing;
Bool useMinutes;
thing.SetUseMinutes(useMinutes);