IsTrackMillisecInJavaDates (NotesSession - JavaScript)

Read-Write. Indicates whether milliseconds are used in Java dates.

Defined in

NotesSession

Syntax

isTrackMillisecInJavaDates() : boolean

setTrackMillisecInJavaDates(flag:boolean) : void

Legal value Description
true to use milliseconds in Java dates
false to not use milliseconds in Java dates

Usage

By default milliseconds are not tracked. You must set this property to true if you want milliseconds to appear in Java dates.

Examples

This computed field displays the current time down to milliseconds.
session.setTrackMillisecInJavaDates(true);
var dt:NotesDateTime = session.createDateTime("Today");
dt.setNow();
var h = dt.toJavaDate().getHours().toFixed();
var m = dt.toJavaDate().getMinutes().toFixed();
var s = dt.toJavaDate().getSeconds().toFixed();
var ms = dt.toJavaDate().getMilliseconds().toFixed();
return h + " hours, " + m + " minutes, " + s + " seconds, " + ms + " ms";