EsigDateUtils class

Constructors

EsigDateUtils()

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

bimestre(DateTime data) int
datetimeFromString(String data, {dynamic format = 'dd/MM/yyyy'}) DateTime
formatDateDMAHM(String date) DateTime
Recebe String com formato 'dd-MM-aaaa hh-mm' e retorna o DateTime correspondente.
formatDateTime(DateTime? data, {String format = 'dd/MM/yyyy HH:mm:ss'}) String
formatDMA(String data) String
Recebe String com formato 'dd-MM-aaaa hh-mm' e retorna 'dd/MM/aaaa'. Ex.: '11-10-2020 03:00' é convertido para '11/10/2020'
formatMonthToInt(String month) int
getNomeMes(int mes) String
getNomeMesAbrev(int mes) String
getNomeMeses(List<int> meses) String
Retorna os nomes em português dos meses em letras maiúsculas separados por ' / '
semestre(DateTime data) int
trimestre(DateTime data) int

Constants

friday → const int
monday → const int
saturday → const int
sunday → const int
Dias da semana na classe DateTime não seguem ordem conveniente. Lá, DateTime.monday == 1 mas DateTime.sunday == 7, ao invés de 0.
thursday → const int
tuesday → const int
wednesday → const int