@geeeger/date-utils
date utils
Last updated 6 days ago by geeeger .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @geeeger/date-utils 
SYNC missed versions from official npm registry.

@geeeger/date-utils

methods

getGMT8LocalDate

import { getGMT8LocalDate } from '@geeeger/date-utils'

const unixTimestamp = Math.floor(Date.now() / 1000)

const date = getGMT8LocalDate(unixTimestamp)

console.log([date.getFullYear(), date.getMonth(), date.getDate()].join('.'))
console.log([date.getHours(), date.getMinutes(), date.getSeconds()].join(':'))

Current Tags

  • 1.0.0                                ...           latest (6 days ago)

1 Versions

  • 1.0.0                                ...           6 days ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |