{"id":16982853,"url":"https://github.com/teplostanski/tictic","last_synced_at":"2025-07-21T06:32:15.341Z","repository":{"id":203616084,"uuid":"710017033","full_name":"teplostanski/tictic","owner":"teplostanski","description":"A versatile and efficient JavaScript library for formatting date and time.","archived":true,"fork":false,"pushed_at":"2023-10-30T18:23:28.000Z","size":222,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T13:37:12.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/tictic","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teplostanski.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2023-10-25T20:53:39.000Z","updated_at":"2025-02-03T14:31:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"84834f7a-603d-4756-9cca-2f83f2448474","html_url":"https://github.com/teplostanski/tictic","commit_stats":null,"previous_names":["teplostanski/tictic","teplostanski/timekit-fns"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/teplostanski/tictic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teplostanski%2Ftictic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teplostanski%2Ftictic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teplostanski%2Ftictic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teplostanski%2Ftictic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teplostanski","download_url":"https://codeload.github.com/teplostanski/tictic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teplostanski%2Ftictic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253614,"owners_count":23900053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-14T02:26:21.679Z","updated_at":"2025-07-21T06:32:10.332Z","avatar_url":"https://github.com/teplostanski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tictic\n\nA versatile and efficient JavaScript library for formatting date and time.\n\n## Table of Contents\n1. [Features](#features)\n2. [Installation](#installation)\n3. [Usage](#usage)\n   - [Date Formatting](#date-formatting)\n   - [Time Formatting](#time-formatting)\n4. [API Reference](#api-reference)\n5. [License](#license)\n\n## Features\n\n- **Date Formatting**: Customize the output format for dates.\n- **Name of Months**: Input custom names for months.\n- **Day Increment/Decrement**: Modify the date by incrementing or decrementing days.\n- **Weekday Formatting**: Control how weekdays are displayed with localization and other options.\n- **Time Formatting**: Format time with support for 12-hour or 24-hour formats.\n- **Valid Time Formats**: Use predefined valid time formats for ease of use.\n\n## Installation\n\nInstall `tictic` via npm:\n\n```bash\nnpm install tictic --save\n```\n\n# [Docs 1.0.0](https://github.com/teplostanski/tictic/tree/main/docs/1.0.0/index.md)\n\n## Usage\n#### Date Formatting\n\nHere's how you can use tictic to format dates:\n\n```javascript\n\nimport { getFormattedDate } from 'tictic'\n\nconst formattedDate = getFormattedDate({\n  date: new Date(),\n  sep: '-',\n  format: 'DD-MM-YYYY',\n  exclude: { year: false, month: false, day: false, zero: false },\n  nameOfMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n  weekDays: {\n    set: true,\n    locale: 'en',\n    format: 'short',\n    case: 'uppercase',\n    position: 'end'\n  },\n  incDay: 1\n});\n\nconsole.log(formattedDate);  // Outputs something like: \"15-JAN-2023 SUN\"\n```\n\n#### Time Formatting\n\nFormatting time is straightforward as well:\n\n```javascript\nimport { getFormattedTime } from 'tictic'\n\nconst formattedTime = getFormattedTime({\n  time: new Date().getTime(),\n  sep: ':',\n  format: 'hh:mm:ss',\n  meridiem: {\n    format: '12h',\n    case: 'uppercase',\n    position: 'end',\n  }\n});\n\nconsole.log(formattedTime);  // Outputs something like: \"01:45:20 PM\"\n```\n\nAPI Reference\n\nFor a deep dive into each method and its options, please refer to the source code documentation. It provides clear details about each configuration property and its possible values.\n\n## License\nThis project is licensed under the GNU General Public License v3.0 (GPL-3.0). See [LICENSE.md](https://github.com/teplostanski/tictic/blob/main/LICENSE.md) for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteplostanski%2Ftictic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteplostanski%2Ftictic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteplostanski%2Ftictic/lists"}