br-time.js
v0.0.9
Published
Essa ferramenta te permite obter data e hora brasileira da forma mais simples possivel !
Downloads
2
Readme
Instalação do pacote:
npm i br-time.js
Exemplo de uso abaixo:
Data do calendario:
const time = require("br-time.js");
let dia = time.days;
let ano = time.year;
let mes = time.month;
console.log(`Hoje é dia ${dia}/${mes}/${ano}`);
Hora brasileira:
const time = require("br-time.js");
let hora = time.hour;
let minutos = time.minute;
let segundos = time.second;
console.log(`Agóra é exatamente: ${hora} horas ${minutos} minutos e ${segundos} segundos.`);