Tagtime (Tagtime v0.1.0) View Source

Implementation of the TagTime universal ping schedule.

https://forum.beeminder.com/t/official-reference-implementation-of-the-tagtime-universal-ping-schedule/4282

Link to this section Summary

Functions

Returns the seed (RNG state) and most recent ping <= t.

Returns new seed and the unix time of the next ping.

Link to this section Functions

Specs

init(number()) :: {integer(), integer()}

Returns the seed (RNG state) and most recent ping <= t.

Link to this function

next_ping(seed, last_ping, gap \\ 45 * 60)

View Source

Specs

next_ping(integer(), integer(), integer()) :: {integer(), integer()}

Returns new seed and the unix time of the next ping.

gap is the average time between pings in seconds, 45 minutes by default.