# oto-zaman

> Verilen milisaniyeyi veya timestamp değerini istenilen türe dönüştürür. Çoklu dil seçenekleri mevcuttur.

Latest version **0.1.0** (published 2021-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install oto-zaman
pnpm add oto-zaman
yarn add oto-zaman
bun add oto-zaman
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2021-05-13 |
| First published | 2021-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7 |
| Dependencies | 0 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Orkun |
| Maintainers | orkn80 |

## Links

- npm: https://www.npmjs.com/package/oto-zaman
- npm.io page: https://npm.io/package/oto-zaman

## Recent versions

- 0.1.0 (latest) — 2021-05-13
- 0.0.4 — 2021-04-20
- 0.0.2 — 2021-04-20

## README

# Oto-zaman
Oto-zaman, tarih ve süre bulmaya yarayan, kullanımı kolay bir araçtır.
* **Not**: Eski sürüm (`z(süre, dil, tür)` ve büyük ihtimal `z(süre, "tr", 3)` kullanmaktasınız) kullanıyorsanız yeni sürümdeki karşılığı: `z.ms(süre, "tr", "str")`
```javascript
const z = require('oto-zaman');
z.sürüm; // -> oto-zaman sürümü
```
- Verilen [timestamp](https://www.eticaret.com/e-ticaret-sozlugu/time-stamp-nedir/) değerinden tarihi bulabilir.
- Verilen [milisaniye](https://milisaniye.nedir.org/) değerinden süreyi bulabilir.
* Verilen değerler `"tr"` (Türkçe) ve `"en"` (İngilizce) olmak üzere iki dilde çıktı alınabilir.
* Çıktı türleri `"obj"` ([nesne](https://www.yazilimkodlama.com/web/javascript-object-nesne-kullanimi/)) veya `"str"` ([yazı](https://caylakyazilimci.com/post/string-veri-tipi)) şeklindedir.

| Dil ve çıktı için varsayılan değerler sırasıyla `"tr"` ve `"str"`dir.

## Örnek

_Milisaniye üzerinden_
```javascript
const z = require('oto-zaman');

z.ms(25000); // -> "25 saniye"

z.ms(25000, "tr"); // -> "25 saniye"
z.ms(25000, "en"); // -> "25 seconds"

z.ms(25000, "tr", "str"); // -> "25 saniye"
z.ms(357000, "en", "str"); // -> "5 minutes 57 seconds"

z.ms(25000, "tr", "obj"); // -> { yıl: 0, gün: 0, saat: 0, dakika: 0, saniye: 25 }
z.ms(357000, "tr", "obj"); // -> { yıl: 0, gün: 0, saat: 0 dakika: 5, saniye: 57 }
```

_Timestamp değeri üzerinden_
```javascript
const z = require('oto-zaman');

timestamp = 1620931590036;

z.tarih(timestamp); // -> "13 Mayıs 2021 Perşembe"
z.tarih(timestamp, "tr"); // -> 13 Mayıs 2021 Perşembe

z.tarih(timestamp, "tr", "str"); // -> "13 Mayıs 2021 Perşembe"
z.tarih(timestamp, "tr", "obj"); // -> { gün: "13", ay: "Mayıs", yıl: "2021" }

z.tarih(timestamp, "en", "str"); // -> "13 May 2021"
z.tarih(timestamp, "en", "obj"); // -> { gün: "13", ay: "May", yıl: "2021" }
```

---
_Source: https://npm.io/package/oto-zaman · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
