Show / Hide Table of Contents

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.

Introduced or updated in version: 8.5R08

Declaration
NSFieldInfoTimeSpan

Methods

GetDefaultValue()

Introduced or updated in version: 8.5R08

Declaration
Integer GetDefaultValue()
Returns
Type Description
Integer

Default TimeSpan value, number of minutes.

Examples
NSFieldInfoTimeSpan thing;
Integer defaultValue = thing.GetDefaultValue();

GetUseDays()

Introduced or updated in version: 8.5R08

Declaration
Bool GetUseDays()
Returns
Type Description
Bool

Should the time-span be counted in days?

Examples
NSFieldInfoTimeSpan thing;
Bool useDays = thing.GetUseDays();

GetUseHours()

Introduced or updated in version: 8.5R08

Declaration
Bool GetUseHours()
Returns
Type Description
Bool

Should the time-span be counted in hours?

Examples
NSFieldInfoTimeSpan thing;
Bool useHours = thing.GetUseHours();

GetUseMinutes()

Introduced or updated in version: 8.5R08

Declaration
Bool GetUseMinutes()
Returns
Type Description
Bool

Should the time-span be counted in minutes?

Examples
NSFieldInfoTimeSpan thing;
Bool useMinutes = thing.GetUseMinutes();

SetDefaultValue(Integer)

Introduced or updated in version: 8.5R08

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)

Introduced or updated in version: 8.5R08

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)

Introduced or updated in version: 8.5R08

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)

Introduced or updated in version: 8.5R08

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);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top