Agent skill
managing-date-time
Standardizes date handling and timezone logic (UTC/PKT) for travel bookings. Use when displaying or saving tour dates.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/managing-date-time
SKILL.md
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
date-fnsfor complex math (e.g.,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
<input type="date">or a custom calendar component (seemanaging-date-selection). - Validation: Ensure end date is not before start date.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?