Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ariya/tebakmasa
Infer the date and time from the general description in Bahasa Indonesia
https://github.com/ariya/tebakmasa
bahasa bahasa-indonesia date indonesian nlp time timestamp
Last synced: about 2 months ago
JSON representation
Infer the date and time from the general description in Bahasa Indonesia
- Host: GitHub
- URL: https://github.com/ariya/tebakmasa
- Owner: ariya
- License: mit
- Created: 2020-05-11T09:14:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T15:52:58.000Z (over 1 year ago)
- Last Synced: 2024-10-20T07:29:22.709Z (about 2 months ago)
- Topics: bahasa, bahasa-indonesia, date, indonesian, nlp, time, timestamp
- Language: JavaScript
- Homepage: https://ariya.github.io/tebakmasa
- Size: 33.2 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-made-by-indonesian - Tebak Masa - `Infer the date and time from the general description in Bahasa Indonesia` *by [Ariya Hidayat](https://github.com/ariya)* (T)
- made-in-indonesia - Tebak Masa - `Infer the date and time from the general description in Bahasa Indonesia` *by [Ariya Hidayat](https://github.com/ariya)* (T)
README
# Tebak Masa
[![npm version](https://img.shields.io/npm/v/@ariya/tebakmasa)](https://www.npmjs.com/package/@ariya/tebakmasa)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@ariya/tebakmasa.svg)](https://bundlephobia.com/result?p=@ariya/tebakmasa)
[![GitHub license](https://img.shields.io/github/license/ariya/tebakmasa)](https://github.com/ariya/tebakmasa/blob/master/LICENSE)
[![Tests](https://github.com/ariya/tebakmasa/workflows/Tests/badge.svg)](https://github.com/ariya/tebakmasa/actions)[Bahasa Indonesia](#indonesian) | [English](#english)
---
**Tebak Masa**: pustaka JavaScript untuk Node.js ([@ariya/tebakmasa](https://www.npmjs.com/package/@ariya/tebakmasa)) guna mengira tanggal dan waktu dari deskripsi umumnya dalam bahasa Indonesia.
Contoh:
```js
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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).
---
**Tebak Masa**: a JavaScript library for Node.js ([@ariya/tebakmasa](https://www.npmjs.com/package/@ariya/tebakmasa)) to infer the date and time from the general description in Indonesian (_Bahasa Indonesia_).
Examples:
```js
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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).