DateTime.Nanosecond

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Integer )
IntegerValue = aDateTime.Nanosecond

New in 2019r2

Supported for all project types and targets.

The nanoseconds of the time portion of the date. A nanosecond is one billionth of a second.

Sample Code

Get the current nanosecond:

Var d As DateTime = DateTime.Now
Var nanosecond As Integer = d.Nanosecond