Module: Hecks::Adapters::SystemClock

Defined in:
lib/hecks/adapters/driven/system_clock.rb

Overview

The real clock fulfillment — the machine's own time, in seconds.

Whole seconds on purpose. The sublanguage does integer arithmetic, a staleness window is measured in minutes, and sub-second precision in a durable ledger is precision nobody reads and every diff has to ignore.

Class Method Summary collapse

Class Method Details

.nowObject



11
# File 'lib/hecks/adapters/driven/system_clock.rb', line 11

def now = Time.now.to_i