dateparse

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dateparse parses the human date and priority inputs nt accepts on the CLI and in the TUI (SPEC §7.3), kept in one place so both surfaces agree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(s string) (string, bool)

Date accepts today, tomorrow, weekday names, +Nd, and YYYY-MM-DD. An empty string or "none"/"-" clears the date (returns "", true). ok is false on an unparseable value.

func Priority

func Priority(s string) (byte, bool)

Priority maps high/med/low (or A/B/C) to a priority byte. "none"/"" clears it (returns 0, true).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL