Contents

Roo

DateTime.add_nanoseconds()

Creates and returns a new DateTime object by adding the specified number of nanoseconds to this DateTime object. This DateTime object is unaltered by the operation.

datetime.add_nanoseconds(ns As Number) as DateTime

Parameters

  • ns. Number. The number of nanoseconds to add to this DateTime object

Returns

  • A new DateTime object

Example

var now = DateTime()
now.add_nanoseconds(25000)