JSPM

@ariya/tebakmasa

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q42636F
  • License MIT

Infer the date and time from the general description in Bahasa Indonesia

Package Exports

  • @ariya/tebakmasa

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ariya/tebakmasa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tebak Masa

npm version npm bundle size (minified) GitHub license Tests

Bahasa Indonesia | English


Bahasa Indonesia

Tebak Masa: pustaka JavaScript untuk Node.js (@ariya/tebakmasa) guna mengira tanggal dan waktu dari deskripsi umumnya dalam bahasa Indonesia.

Contoh:

const tebakmasa = require('@ariya/tebakmasa');

tebakmasa('3 menit yang lalu');
tebakmasa('13:37 WIB');
tebakmasa('17 Agustus 2020 10:00');   // 1600311600028
tebakmasa('17/8/2020 10:00')

Nilai yang dikembalikan pemanggilan fungsi tebakmasa adalah Unix epoch, jumlah milidetik semenjak tengah malam tanggal 1 Januari 1970 UTC. Untuk rincinya, silakan merujuk ke dokumentasi JavaScript tentang Date.


English

Tebak Masa: a JavaScript library for Node.js (@ariya/tebakmasa) to infer the date and time from the general description in Indonesian (Bahasa Indonesia).

Examples:

const tebakmasa = require('@ariya/tebakmasa');

tebakmasa('3 menit yang lalu');
tebakmasa('13:37 WIB');
tebakmasa('17 Agustus 2020 10:00');   // 1600311600028
tebakmasa('17/8/2020 10:00')

The return value is Unix epoch, the number of milliseconds that have elapsed since midnight on January 1, 1970, UTC. For more details, refer to the documentation of JavaScript Date object.