registerDurationExtensions function

void registerDurationExtensions()

Registers native methods for the Duration type. These are registere automatically by the VM.

Implementation

void registerDurationExtensions() {
  registerNativeMethod(InYears());
  registerNativeMethod(InHours());
  registerNativeMethod(InMinutes());
  registerNativeMethod(InSeconds());
  registerNativeMethod(InMilliseconds());
  registerNativeMethod(IsNegative());
  registerNativeMethod(Abs());
  registerNativeMethod(CompareTo());
}