Click or drag to resize
NanoXLSX

UtilsGetOATime Method

Method to convert a time into the internal Excel time format (OAdate without days)

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
public static double GetOATime(
	TimeSpan time
)

Parameters

time  TimeSpan
Time to process. The date component of the timespan is converted to the total numbers of days

Return Value

Double
Time as number
Remarks
The time is represented by a OAdate without the date component but a possible number of total days
See Also