Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // import something here
  2. import { uuid } from '@toby.mosque/utils'
  3. // "async" is optional
  4. export default async (context) => {
  5. let date = new Date(2019, 8, 1, 17, 25, 40, 123)
  6. let comba = uuid.comb()
  7. let combb = uuid.comb(date)
  8. console.log('comb a: ', comba)
  9. console.log('comb b: ', combb)
  10. console.log('date a: ', timestamp(uuid.extractDate(comba)))
  11. console.log('date b: ', timestamp(uuid.extractDate(combb)))
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement