Claude-skill-registry-data managing-date-time
Standardizes date handling and timezone logic (UTC/PKT) for travel bookings. Use when displaying or saving tour dates.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/managing-date-time" ~/.claude/skills/majiayu000-claude-skill-registry-data-managing-date-time && rm -rf "$T"
manifest:
data/managing-date-time/SKILL.mdsource content
Date and Time Handling
When to use this skill
- Displaying departure/arrival times.
- Calculating trip duration.
- Saving booking dates to Appwrite.
Standard Practices
- Storage: Always save dates as ISO 8601 Strings in UTC.
- Display: Use the user's local time or a fixed PKT (Pakistan Standard Time) if the tour is localized.
- Library: Use
for complex math (e.g.,date-fns
,addDays
).differenceInDays
Example (Date-fns)
import { format, parseISO } from 'date-fns'; export const formatTourDate = (isoString: string) => { const date = parseISO(isoString); return format(date, 'MMM dd, yyyy'); // e.g., "Jan 15, 2026" };
Instructions
- Input: Use
or a custom calendar component (see<input type="date">
).managing-date-selection - Validation: Ensure end date is not before start date.