0.1.7 • Published 7 years ago

ksecs v0.1.7

Weekly downloads
8
License
WTFPL
Repository
-
Last release
7 years ago

ksecs

Library for dealing with time in kiloseconds.

Usage

get

Get the number of kiloseconds into the given day

Aliases:

  • toKSecs
  • toKsecs
  • toKs
  • convert

Parameters:

  • date: Date to get kiloseconds from

Example:

> ksecs.toKSecs(new Date("Apr 20 2017 16:20:42 GMT-0800"));
62.442

now

Get the current kiloseconds into the current day

Aliases:

  • currentTime

Example:

> ksecs.now();
63.331

fromEpoch

Get kiloseconds into a day from an epoch time

Parameters:

  • milliseconds: Epoch time

Example:

> ksecs.fromEpoch(1234567890);
82.567
MinutesSecondsKiloseconds
1 minute60 s0.06 ks
5 minutes300 s0.3 ks
10 minutes600 s0.6 ks
15 minutes900 s0.9 ks
16 minutes 40 seconds1000 s1 ks
20 minutes1200 s1.2 ks
25 minutes1500 s1.5 ks
30 minutes1800 s1.8 ks
33 minutes 20 seconds2000 s2 ks
35 minutes2100 s2.1 ks
40 minutes2400 s2.4 ks
45 minutes2700 s2.7 ks
50 minutes3000 s3 ks
55 minutes3300 s3.3 ks
60 minutes3600 s3.6 ks
1 hour, 23 minutes, 20 seconds5000 s5 ks
6 hours21600 s21.6 ks
12 hours43200 s43.2 ks
18 hours64800 s64.8 ks
24 hours86400 s86.4 ks
0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago