NepaliMoment class

NepaliMoment describes the moment in Nepali locale.

Generates a fuzzy timestamp using dates provided.

Constructors

NepaliMoment()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromAD(DateTime date, {DateTime? referenceDate, bool showToday = false}) String
Converts the difference between date and referenceDate in DateTime into moment string.
fromBS(NepaliDateTime date, {NepaliDateTime? referenceDate, bool showToday = false}) String
Converts the difference between date and referenceDate in NepaliDateTime into moment string.