Parses times written in simple Kurdish to unix time.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.js
package.json
test.js

README.md

kurdish-time

Parses times written in simple Kurdish to unix time. Based on english-time.

Translation: @omarkurt

time = require('kurdish-time')

time('314 çirke')
// => 314

time('5 deqe 15 çirke')
// => 315000

time('1 sehet, 5 deqe ve 15 Çirke')
// => 3915000

time('2se 15r 15ç')
// => 3915000

time('3 hefte, 5 roj, 6 sehet')
// => 2268000000

time('3h, 5r 6s')
// => 2268000000

Install

$ npm install kurdish-time
## List of Recognized Unit Aliases

Milliseconds

  • miliçirke

Second(s)

  • ç
  • çirke

Minute(s)

  • d
  • dq
  • deqe

Hour(s)

  • s
  • sehet

Day(s)

  • g
  • roj
  • rojin

Week(s)

  • h
  • hefte