Skip to main content

Module workdays

Module workdays 

Source
Expand description

Daily work session tracking.

Records work session start/end times, manages workday lifecycle, and provides the foundation for time tracking and productivity reporting. Daily work session tracking and time management operations.

Provides functionality for managing daily work sessions, including automatic start/end time tracking, time adjustments, and period-based querying.

§Features

  • Session Tracking: Automatic recording of daily work start and end times
  • Time Adjustments: Manual correction of work session boundaries
  • Period Queries: Efficient retrieval of workdays by date ranges
  • Duplicate Prevention: Ensures only one workday record per date
  • Timezone Handling: Consistent local timezone management for all operations

§Usage

use kasl::db::workdays::Workdays;
use chrono::Local;

let mut workdays = Workdays::new()?;
let today = Local::now().date_naive();

workdays.insert_start(today)?;
workdays.insert_end(today)?;

Structs§

Workday
Represents a complete workday record with temporal boundaries.
Workdays
Database manager for workday operations and time tracking functionality.