JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q43027F
  • License MIT

Datas em formato pt-BR

Package Exports

  • date-pt-br

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (date-pt-br) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

date-pt-br

Datas em formato pt-BR

Functions

Abaixo as funçõe disponíveis

getDay()

Retorna o dia do mês (1 a 31)

getMonthNumber()

Retorna o mês em número (1 a 12)

getMonth()

Retorna o mês por extenso. Ex: Abril

getYear()

Retorna o ano

getWeekdayNumber()

Retorna o dia da semana em número (1 a 7)

getWeekday()

Retorn o dia da semana por extenso. Ex: Segunda-Feira

getDate()

Retorna a data. Ex: 01/04/2019

getExtendedDate()

Retorna a data por extenso. Ex: 01 de Abril de 2019

getExtendedWeekdayDate()

Retorna a data com dia da semana por extenso. Ex: Segunda-Feira, 01 de Abril de 2019

getExtendedCityDate(city)

Retorna a data por extenso com a cidade passada por parâmetro. Ex: São Paulo, 01 de Abril de 2019

getMonthNumberYear()

Retorna mês e ano. Ex: 04/2019

getMonthYear()

Retorna mês por extenso e ano. Ex: Abril/2019

getHour()

Retorna hora (1 a 23)

geExtendedtHour()

Retorna hora por extenso. Ex: 14 horas

getMinute()

Retorna minuto (1 a 59)

getExtendedMinute()

Retorna minuto por extenso. Ex: 47 minutos

getSecond()

Retorna segundo (1 a 59)

getExtendedSecond()

Retorna segundo por extenso. Ex: 32 segundos

getTime()

retorna a hora. Ex: 14:47:32

getExtendedTime()

retorna a hora por extenso. Ex: 14 horas e 47 minutos e 32 segundos

getHourMinute()

retorna a hora e minuto. Ex: 14:47

getExtendedHourMinute()

retorna a hora e minuto por extenso. Ex: 14 horas e 47 minutos