Link Search Menu Expand Document

Time overview

Exposes some utilities to work with unix time.

See Time Elm package.

Added in v0.5.0


Table of contents


constructors

now

Get the current unix time as a Task.

Signature

export declare function now(): Task<number>

Added in v0.5.0

utils

every

Get the current unix time periodically.

Signature

export declare function every<Msg>(time: number, f: (time: number) => Msg): Sub<Msg>

Added in v0.5.0