Socket
Socket
Sign inDemoInstall

@ariya/tebakmasa

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ariya/tebakmasa

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


Version published
Weekly downloads
5
Maintainers
1
Install size
8.70 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 20 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc