Skip to main content

new_block

Function new_block 

Source
pub fn new_block(
    task: &Task,
    uid: &str,
    start: i64,
    end: i64,
    alarm: bool,
    now: &Zoned,
) -> Result<String, String>
Expand description

A new block for task, start to end (Unix seconds), with its own uid; an alarm five minutes before it when asked (alarm), else none.