BASS.NET API for the Un4seen BASS Audio LibraryUtilsFixTimespan Method (Double, String)BASS.NET API for the Un4seen BASS Audio Library
Converts a second value as reveived by BASS_ChannelBytes2Seconds(Int32, Int64) to a string representation.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version:

public static string FixTimespan(
	double seconds,
	string format


Type: SystemDouble
A value representing seconds.
Type: SystemString
One of the following constants:
HHMMSShours:minutes:seconds, e.g. 00:03:17
MMSSminutes:seconds, e.g. 03:17
MMSSFFminutes:seconds.milliseconds, e.g. 03:17.25
MMSSFFFminutes:seconds.milliseconds, e.g. 03:17.257
MMSSFminutes:seconds.milliseconds, e.g. 03:17.2
HHMMSSFFhours:minutes:seconds.milliseconds, e.g. 00:03:17.25
HHMMSSFFFhours:minutes:seconds.milliseconds, e.g. 00:03:17.257
HHMMSSFhours:minutes:seconds.milliseconds, e.g. 00:03:17.2
SMPTE24hours:minutes:seconds:frames (with 24fps)
SMPTE25hours:minutes:seconds:frames (with 25fps)
SMPTE30hours:minutes:seconds:frames (with 30fps)
SMPTE50hours:minutes:seconds:frames (with 50fps)
SMPTE60hours:minutes:seconds:frames (with 60fps)
all othersWill be converted according to the standard DateTimeFormatInfo pattern as specified in the format parameter.

Return Value

Type: String
The seconds as a string in the given format.
See Also