Skip to content

libvlc.FormatTime

Andrew Lambert edited this page Nov 26, 2022 · 6 revisions

libvlc.FormatTime

Method signature

 Protected Function FormatTime(Milliseconds As Int64, FractionalSeconds As Boolean = False) As String

Remarks

Formats the period of time denoted by Milliseconds as HH:MM:SS. For example:

  • FormatTime(6000000)="1:40:00"
  • FormatTime(60000)="1:00"
  • FormatTime(123456789)="34:17:36"

To include fractions of a second, pass True for FractionalSeconds:

  • FormatTime(6000000, True)="1:40:00.00"
  • FormatTime(60000, True)="1:00.00"
  • FormatTime(123456789, True)="34:17:36.79"

See also

Clone this wiki locally