Time

Time

This is a static class exported by common-all. It has the DateTime object which is exported by luxon

  • NOTE: we are using luxon 1, not luxon 2
import { DateTime } from "luxon";

export class Time {
  static now() {
    return DateTime.local();
  }
  static DateTime = DateTime;
}

Backlinks