Now class abstract

Now container.

Constructors

Now.new()

Properties

defaultFormatters Iterable<DateTimeFormatter>
Returns default DateTimeFormatters.
no setter
forbiddenSpecifier String
Returns a forbidden specifier.
final
formatters Iterable<DateTimeFormatter>
Returns all registered DateTimeFormatters.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() DateTime
Creates a DateTime instance with current date and time in the local time zone.
destroy(bool test(DateTimeFormatter formatter)) → void
Destroys a registered DateTime formatter with the given test.
destroyAll() → void
Destroys all registered DateTime formatters.
destroyDefault() → void
Destroys all default DateTime formatters.
destroyWith(String specifier) → void
Destroys a registered DateTime formatter with the given specifier.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(DateTimeFormatter formatter) → void
Register a DateTimeFormatter for current Now instance.
registerWith(String specifier, DateTimeFormatter formatter) → void
Register a DateTimeFormatter for current Now instance with the given specifier.
registerWithFn(String specifier, String formatter(DateTime date)) → void
Register a formatter for current Now instance with the given specifier.
stopwatch([bool start = true]) Stopwatch
Satrts a new Stopwatch and returns it.
toString() String
A string representation of this object.
inherited
utc() DateTime
Creates a DateTime instance with current date and time in the UTC time zone.

Operators

operator ==(Object other) bool
The equality operator.
inherited