Using AI to generate precise ISO 8601 timestamps
UTMS integrates with the Gemini AI model to generate ISO 8601 timestamps based on natural language input. This tutorial covers the process.
Prerequisites
Gemini API key configured in UTMS.
Internet connectivity for API requests.
Steps
Verify API Configuration: Ensure the Gemini API key is set:
poetry run utms config print gemini.api_key
Generate a Timestamp: Use the ai timestamp command to create a timestamp:
poetry run utms ai timestamp "next Friday at 3 PM"
Output:
2025-01-17T15:00:00Z
Refine with Context: Provide additional details to improve precision:
poetry run utms ai timestamp "6 months from project_deadline"
Handle Errors: If the command fails, troubleshoot by: - Checking your API key validity. - Verifying the input syntax.
This tutorial helps you unlock the power of AI for time management.