Time Calculations
Table of Contents
1. Overview
Mac-Auth relies on strict UNIX epoch timestamps to control interval flow and time-based calculations.
2. Core Mathematical Conversions
- Epoch Parsing
-
-
Extracts time in seconds using epoch format
unix_timestamp(now()) - unix_timestamp(LASTRSTTIME) -
Produces elapsed time in seconds
-
- Interval Tracking (
RstInterval) -
-
Tracks interval values uniformly in seconds
-
Maintains consistent time boundaries
-
Ensures accurate interval mapping
-
- End of Interval Caps
-
-
Calculates remaining interval time
RstInterval - ElapsedTime -
Prevents overflow beyond defined limits
-
- Session Boundary Caps
-
-
Applies final constraints using
Timespan -
Ensures session limits are not exceeded
-
Wraps calculations within defined boundaries
-