1.0.5 • Published 5 years ago
time-pack.js v1.0.5
time.js
Library created with Javascript which you can use to get data about current date and use it, for example on your website
Setup
Clone repository
npm i time-pack.js
Link javascript file
<script src="node_modules/time-pack.js/time.min.js"></script>
Get time to your mark, for example:
<h1 id="hour"></h1>
<!-- Output: current hour -->
Full id documentation
- year = current year
- month = current month
- day = current day
- hour = current hour
- minute = current minute
- second = current second
- translated-month = name of the month, for example: April
- translated-day = name of the day, for example: Monday
- short-day = short name of the day, for example: Mon.
- dmy = day + month + year, for example 22.04.2019
- dtmy = day + translated-month + year, for example 22 April 2019
- hm = hour + minute, for example 17:59
- full-time = full date + full time
- short-month = short name of the month, for example: Jan.