{"id":23002567,"url":"https://github.com/archways404/rustyconsolecalculate","last_synced_at":"2026-02-07T15:03:39.310Z","repository":{"id":267278957,"uuid":"900733242","full_name":"archways404/RustyConsoleCalculate","owner":"archways404","description":"RCC is a lightweight, easy to use and versatile CLI tool designed to perform basic mathematical calculations and manage timestamps.","archived":false,"fork":false,"pushed_at":"2024-12-09T12:23:31.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-28T02:47:50.454Z","etag":null,"topics":["cli","rust","tool"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/RustyConsoleCalculate","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/archways404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-09T11:23:29.000Z","updated_at":"2024-12-09T12:22:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"82b710e5-a3ee-491f-9530-4917f5392cac","html_url":"https://github.com/archways404/RustyConsoleCalculate","commit_stats":null,"previous_names":["archways404/rustyconsolecalculate"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/archways404/RustyConsoleCalculate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archways404%2FRustyConsoleCalculate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archways404%2FRustyConsoleCalculate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archways404%2FRustyConsoleCalculate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archways404%2FRustyConsoleCalculate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archways404","download_url":"https://codeload.github.com/archways404/RustyConsoleCalculate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archways404%2FRustyConsoleCalculate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29197665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T14:35:27.868Z","status":"ssl_error","status_checked_at":"2026-02-07T14:25:51.081Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","rust","tool"],"created_at":"2024-12-15T07:11:25.531Z","updated_at":"2026-02-07T15:03:39.305Z","avatar_url":"https://github.com/archways404.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# RCC (Rusty Console Calculator)\n\nRCC is a versatile CLI tool designed to perform basic mathematical calculations and manage timestamps. It is lightweight, easy to use, and can handle tasks like converting timestamps, generating human-readable date-time strings, and fetching the current Unix timestamp.\n\n## Features\n\n- **Mathematical Calculations**: Evaluate mathematical expressions directly from the command line.  \n  Example: `RCC \"1 + 2 * 3\"`.\n- **Timestamp Conversion**: Convert Unix timestamps to specific time zones.  \n  Command: `ctz`.\n- **Human-Readable Timestamps**: Translate Unix timestamps into local human-readable date-time formats.  \n  Command: `ctr`.\n- **Current Timestamp**: Get the current Unix timestamp.  \n  Command: `ct`.\n\n## Installation\n\n1. Add RCC to your project by installing it via `cargo`:\n\n   ```bash\n   cargo install RustyConsoleCalculate\n   ```\n\n2. Clone the repository and build manually if needed:\n\n   ```bash\n   git clone https://github.com/archways404/rcc.git\n   cd rcc\n   cargo build --release\n   ```\n\n3. Run the built binary:\n\n   ```bash\n   ./target/release/RCC\n   ```\n\n## Usage\n\nRCC can be used in two ways: evaluating mathematical expressions or using timestamp-related commands.\n\n### 1. Mathematical Calculations\n\nTo evaluate a mathematical expression, simply pass the expression as a string:\n\n```bash\nRCC \"13 + 14 * 2\"\n```\n\nOutput:\n\n```\n41\n```\n\n### 2. Timestamp Commands\n\n#### Convert a Unix Timestamp to a Specific Timezone\n\nUse the `ctz` command to convert a Unix timestamp to a given timezone:\n\n```bash\nRCC ctz 1702216800 America/New_York\n```\n\nOutput:\n\n```\n2024-12-09 07:00:00 -05:00\n```\n\n#### Convert a Unix Timestamp to a Human-Readable Format\n\nUse the `ctr` command to convert a Unix timestamp into a human-readable date-time in the local timezone:\n\n```bash\nRCC ctr 1702216800\n```\n\nOutput:\n\n```\n2024-12-09 12:00:00\n```\n\n#### Get the Current Unix Timestamp\n\nUse the `ct` command to fetch the current Unix timestamp:\n\n```bash\nRCC ct\n```\n\nOutput:\n\n```\n1702216800\n```\n\n### Help Menu\n\nRun the `--help` flag to see all available options:\n\n```bash\nRCC --help\n```\n\nExample Output:\n\n```\nRCC 0.0.2\nA CLI tool for performing calculations and managing timestamps\n\nRCC is a versatile CLI tool that allows you to:\n1. Perform basic mathematical calculations by providing an expression as a string, e.g., '1 + 2'.\n2. Convert timestamps to a specific timezone using the 'ctz' command.\n3. Translate timestamps into human-readable formats using the 'ctr' command.\n4. Get the current Unix timestamp using the 'ct' command.\n\nUSAGE:\n    RCC [EXPRESSION] [COMMAND]\n\nARGS:\n    \u003cEXPRESSION\u003e    Mathematical expression to evaluate, e.g., '13 + 14 * 2'\n\nOPTIONS:\n    -h, --help       Print help information\n    -V, --version    Print version information\n\nCOMMANDS:\n    ctz   Convert a Unix timestamp to a specific timezone\n    ctr   Convert a Unix timestamp to a human-readable format\n    ct    Get the current Unix timestamp\n    help  Print this message or the help of the given subcommand(s)\n```\n\n## Contributing\n\nContributions are welcome! To contribute:\n\n1. Fork the repository.\n2. Create a feature branch (`git checkout -b feature-name`).\n3. Commit your changes (`git commit -m \"Add feature-name\"`).\n4. Push your branch (`git push origin feature-name`).\n5. Open a pull request.\n\n## License\n\nRCC is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.\n\n---\n\nHappy Calculating!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchways404%2Frustyconsolecalculate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchways404%2Frustyconsolecalculate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchways404%2Frustyconsolecalculate/lists"}