Help us shape the future of Go! Take the 2026 Go Developer Survey

dates

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dates mines calendar dates out of filenames, so camera and screenshot names can drive date-based destinations when embedded metadata is missing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFilename

func FromFilename(name string) (time.Time, bool)

FromFilename returns the first date found scanning the filename stem left to right. Matches must be bounded by non-digits (or the stem ends) so phone numbers and long identifiers cannot produce an 8-digit pseudo-date, and only years from 1990 to 2100 with a valid month and day are accepted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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