Loading...
Searching...
No Matches
clock Directory Reference

Files

 
astro.c
 Pure astronomy math, host-testable off-device.
 
astro.h
 Pure astronomy math you can test off the watch. Right now just the Julian Date, worked out from a UTC timestamp with plain integer math, so it needs no Pebble services and no floats.
 
beats.c
 Pure swatch .beats math, host-testable off-device.
 
beats.h
 Pure swatch .beats math, operates on ms since Biel Mean Time (UTC+1) midnight. Also holds the token a date format uses to ask for a .beats reading.
 
date.c
 Pure calendar math, host-testable off-device.
 
date.h
 Pure calendar math you can test off the watch. Week numbers, day counts, and month shapes worked out from plain numbers, so it needs no Pebble services and no struct tm.
 
duration.c
 A minute count turned into a short human duration.
 
duration.h
 A minute count turned into a short human duration, no SDK.
 
hour_latch.c
 The hourly buzz latch, host-testable off-device.
 
hour_latch.h
 Decides when an hourly buzz fires, so it fires once for each real hour.
 
moon.c
 Pure moon-phase math, host-testable off-device.
 
moon.h
 Pure moon-phase math you can test off the watch. It counts from a known new moon using the average length of a moon cycle, so it needs nothing but a UTC timestamp.
 
nightsched.c
 The night window, by containment rather than by edge.
 
nightsched.h
 Whether a night-time window is open right now, from plain clock readings.
 
rotate.c
 Working out which one is up from the clock.
 
rotate.h
 Which one of a set to show right now, on a timed rotation.
 
solar.c
 How the day's light is going, worked out from three plain clock readings.
 
solar.h
 How the day's light is going, worked out from three plain clock readings.
 
tide.c
 The rise and fall of a semidiurnal tide, from a plain running minute count.
 
tide.h
 The rise and fall of a semidiurnal tide, from a plain running minute count.
 
timeband.c
 The window sums: build one, place a moment on it, and clip a span to it.
 
timeband.h
 A stretch of the day as an axis, and the sums that put a moment somewhere along it.
 
weekday.c
 Weekday names, host-testable off-device.
 
weekday.h
 Short weekday names shared by the panels that label a day.
 
zone_setting.c
 Reads a time zone setting the way the phone sends it.
 
zone_setting.h
 Reads a time zone setting the way the phone sends it, the minutes ahead of UTC then a comma and the place's name, as in "60,London". An empty setting means no zone is picked, which is what the phone sends once the wearer clears the picker.