METHOD:  XTLRuntime::formatTime

This method is a Microsoft extension to the W3C DOM.

formatTime(varTime, bstrFormat, varDestFormat)

The formatTime method returns the supplied time as a string formatted using the specified options. The 'varDestLocale' parameter determines the sequence to be used in displaying the time, depending on locale. The 'bstrFormat' parameter supports the following codes:

  • h
    hours as 0-23
  • hh
    hours as 00-23
  • m
    minutes as 0-59
  • mm
    minutes as 00-59
  • s
    seconds as 0-59
  • ss
    seconds as 00-59
  • AM/PM
    display hours as 12 hour clock, inserting 'AM' or 'PM'
  • am/pm
    display hours as 12 hour clock, inserting 'am' or 'pm'
  • A/P
    display hours as 12 hour clock, inserting 'A' or 'P'
  • a/p
    display hours as 12 hour clock, inserting 'a' or 'p'
  • [h]:mm
    elapsed time in hours; for example, 26.25
  • [mm]:ss
    elapsed time in minutes; for example, 72.51
  • [ss]
    elapsed time is seconds
  • ss.00
    fractions of a second


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information