adding epoch function and making date a number

This commit is contained in:
Nikola Bjelo committed 2018-10-19 14:51:00 +02:00
1 parent 039bca1571
commit d4690f3295
4 files changed
+11 -7

No files matched your search

+3 -1
View File
@@ -11,4 +11,6 @@ export const slugify = (text) => {
.replace(/-+$/, '')
}
export default { capitalize, slugify }
export const epoch = () => {
return Math.round(new Date().getTime() / 1000)
}