Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add time-converter extension #16183

Merged
merged 7 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extensions/time-converter/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
5 changes: 5 additions & 0 deletions extensions/time-converter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

.DS_Store
node_modules/
src/.DS_Store
src/.DS_Store
5 changes: 5 additions & 0 deletions extensions/time-converter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Time Converter Changelog

## [Added Time Converter] - 2025-01-05

Initial version
50 changes: 50 additions & 0 deletions extensions/time-converter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Time Converter Raycast Extension

A powerful time zone converter that supports city names, aliases, and flexible time formats.

## Features
- Convert times between multiple timezones
- Support for common city names and timezone aliases
- Flexible time input formats (12/24 hour, now, noon, midnight)
- List or inline output format
- Configurable default locations

## Installation
1. Ensure Node.js 16+ is installed
2. Clone this repository
3. Run `npm install`
4. Run `npm run dev` for development
5. Run `npm run build` for production build

## Usage
1. Open Raycast
2. Type "Convert Time"
3. Enter time (e.g., "3PM", "15:00", "now")
4. Optional: Enter locations (e.g., "NYC, London, Tokyo")
5. Optional: Choose format ("list" or "inline")

## Configuration
Configure default locations and format in Raycast preferences:
1. Open Raycast preferences
2. Navigate to Extensions
3. Find "Time Converter"
4. Set your preferred defaults

## Supported Time Formats
- 12-hour: 3PM, 3:30PM
- 24-hour: 15:00, 15
- Special: now, noon, midnight

## Supported Location Formats
- City names: London, Tokyo, Paris
- Acronyms: NYC, LA, SF
- Timezone IDs: America/New_York, Europe/London

## Development
- `npm run dev`: Start development mode
- `npm run build`: Build for production
- `npm run lint`: Run linter
- `npm run publish`: Publish to Raycast store

## License
MIT
Binary file added extensions/time-converter/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions extensions/time-converter/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]},
{languageOptions: { globals: globals.browser }},
...tseslint.configs.recommended,
pluginJs.configs.recommended
];
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading