{"id":23772031,"url":"https://github.com/michal-josef-spacek/curses-ui-time","last_synced_at":"2026-04-01T09:30:18.194Z","repository":{"id":17223415,"uuid":"19992267","full_name":"michal-josef-spacek/Curses-UI-Time","owner":"michal-josef-spacek","description":"Create and manipulate time widgets.","archived":false,"fork":false,"pushed_at":"2023-06-22T07:38:30.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T04:47:16.027Z","etag":null,"topics":["curses-ui"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michal-josef-spacek.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-20T18:23:10.000Z","updated_at":"2022-10-23T08:21:35.000Z","dependencies_parsed_at":"2022-07-26T14:02:14.537Z","dependency_job_id":null,"html_url":"https://github.com/michal-josef-spacek/Curses-UI-Time","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal-josef-spacek%2FCurses-UI-Time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal-josef-spacek%2FCurses-UI-Time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal-josef-spacek%2FCurses-UI-Time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal-josef-spacek%2FCurses-UI-Time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michal-josef-spacek","download_url":"https://codeload.github.com/michal-josef-spacek/Curses-UI-Time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239958284,"owners_count":19724925,"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":["curses-ui"],"created_at":"2025-01-01T04:47:20.889Z","updated_at":"2026-04-01T09:30:18.072Z","avatar_url":"https://github.com/michal-josef-spacek.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Curses::UI::Time - Create and manipulate time widgets.\n\nCLASS HIERARCHY\n     Curses::UI::Widget\n     Curses::UI::ContainerWidget\n        |\n        +----Curses::UI::ContainerWidget\n           --Curses::UI::Label\n           --Curses::UI::Number\n                |\n                +----Curses::UI::Time\n\nSYNOPSIS\n     use Curses::UI;\n\n     my $win = $cui-\u003eadd('window_id', 'Window');\n     my $time = $win-\u003eadd(\n             'mynum', 'Curses::UI::Time',\n             -time =\u003e 1400609240,\n     );\n     $time-\u003edraw;\n\nDESCRIPTION\n    Curses::UI::Time is a widget that shows a time in graphic form.\n\nSTANDARD OPTIONS\n    \"-parent\", \"-x\", \"-y\", \"-width\", \"-height\", \"-pad\", \"-padleft\",\n    \"-padright\", \"-padtop\", \"-padbottom\", \"-ipad\", \"-ipadleft\",\n    \"-ipadright\", \"-ipadtop\", \"-ipadbottom\", \"-title\", \"-titlefullwidth\",\n    \"-titlereverse\", \"-onfocus\", \"-onblur\".\n\n    For an explanation of these standard options, see Curses::UI::Widget.\n\nWIDGET-SPECIFIC OPTIONS\n    *       \"-colon\" \u003c NUMBER \u003e\n\n             View colon flag.\n             Default value is '1'.\n\n    *       \"-date\" \u003c DATE_FLAG \u003e\n\n             View date flag.\n             Default value is 0.\n\n    *       \"-fg\" \u003c CHARACTER \u003e\n\n             Foreground color.\n             Possible values are defined in Curses::UI::Color.\n             Default value is '-1'.\n\n    *       \"-time\" \u003c TIME \u003e\n\n             Time.\n             Default value is actual time.\n\n    *       \"-second\" \u003c SECOND_FLAG \u003e\n\n             View second flag.\n             Default value is 0.\n\nSTANDARD METHODS\n    \"layout\", \"draw\", \"intellidraw\", \"focus\", \"onFocus\", \"onBlur\".\n\n    For an explanation of these standard methods, see Curses::UI::Widget.\n\nWIDGET-SPECIFIC METHODS\n    *       \"new(%parameters)\"\n\n             Constructor.\n             Create widget with volume in graphic form, defined by -volume number.\n             Returns object.\n\n    *       \"colon()\"\n\n             Get or set colon flag.\n             Returns colon flag.\n\n    *       \"time()\"\n\n             Get or set time (and date with -date =\u003e 1).\n             Returns time in seconds.\n\nEXAMPLE1\n     use strict;\n     use warnings;\n\n     use Curses::UI;\n\n     # Object.\n     my $cui = Curses::UI-\u003enew;\n \n     # Main window.\n     my $win = $cui-\u003eadd('window_id', 'Window');\n \n     # Add volume.\n     $win-\u003eadd(\n             undef, 'Curses::UI::Time',\n             '-time' =\u003e 1400609240,\n     );\n \n     # Binding for quit.\n     $win-\u003eset_binding(\\\u0026exit, \"\\cQ\", \"\\cC\");\n \n     # Loop.\n     $cui-\u003emainloop;\n\n     # Output like:\n     # ██████ ██████      ██████ ██████\n     #     ██ ██  ██  ██  ██  ██     ██\n     # ██████ ██  ██      ██  ██     ██\n     # ██     ██  ██  ██  ██  ██     ██\n     # ██████ ██████      ██████     ██\n\nEXAMPLE2\n     use strict;\n     use warnings;\n\n     use Curses::UI;\n\n     # Object.\n     my $cui = Curses::UI-\u003enew(\n             -color_support =\u003e 1,\n     );\n \n     # Main window.\n     my $win = $cui-\u003eadd('window_id', 'Window');\n\n     # Add time.\n     my $time = $win-\u003eadd(\n             undef, 'Curses::UI::Time',\n             '-border' =\u003e 1,\n             '-second' =\u003e 1,\n             '-time' =\u003e time,\n     );\n \n     # Binding for quit.\n     $win-\u003eset_binding(\\\u0026exit, \"\\cQ\", \"\\cC\");\n\n     # Timer.\n     $cui-\u003eset_timer(\n             'timer',\n             sub {\n                     $time-\u003etime(time);\n                     $cui-\u003edraw(1);\n                     return;\n             },\n             1,\n     );\n \n     # Loop.\n     $cui-\u003emainloop;\n\n     # Output like:\n     # ┌────────────────────────────────────────────────────┐\n     # │    ██     ██      ██████ ██████          ██ ██████ │\n     # │    ██     ██  ██  ██  ██ ██  ██  ██      ██ ██  ██ │\n     # │    ██     ██      ██  ██ ██  ██          ██ ██████ │\n     # │    ██     ██  ██  ██  ██ ██  ██  ██      ██     ██ │\n     # │    ██     ██      ██████ ██████          ██ ██████ │\n     # └────────────────────────────────────────────────────┘\n\nEXAMPLE3\n     use strict;\n     use warnings;\n\n     use Curses::UI;\n\n     # Object.\n     my $cui = Curses::UI-\u003enew(\n             -color_support =\u003e 1,\n     );\n \n     # Main window.\n     my $win = $cui-\u003eadd('window_id', 'Window');\n\n     # Add time.\n     my $time = $win-\u003eadd(\n             undef, 'Curses::UI::Time',\n             '-border' =\u003e 1,\n             '-date' =\u003e 1,\n             '-second' =\u003e 1,\n             '-time' =\u003e time,\n     );\n \n     # Binding for quit.\n     $win-\u003eset_binding(\\\u0026exit, \"\\cQ\", \"\\cC\");\n\n     # Timer.\n     $cui-\u003eset_timer(\n             'timer',\n             sub {\n                     $time-\u003etime(time);\n                     $cui-\u003edraw(1);\n                     return;\n             },\n             1,\n     );\n \n     # Loop.\n     $cui-\u003emainloop;\n\n     # Output like:\n     # ┌────────────────────────────────────────────────────┐\n     # │    ██     ██      ██████ ██████      ██  ██ ██████ │\n     # │    ██     ██  ██  ██  ██ ██  ██  ██  ██  ██ ██  ██ │\n     # │    ██     ██      ██  ██ ██  ██      ██████ ██  ██ │\n     # │    ██     ██  ██  ██  ██ ██  ██  ██      ██ ██  ██ │\n     # │    ██     ██      ██████ ██████          ██ ██████ │\n     # │                                                    │\n     # │                      2014-05-24                    │\n     # └────────────────────────────────────────────────────┘\n\nDEPENDENCIES\n    Curses, Curses::UI::Common, Curses::UI::Label, Curses::UI::Number,\n    Curses::UI::Widget, Readonly, Unicode::UTF8.\n\nSEE ALSO\n    Task::Curses::UI\n        Install the Curses::UI modules.\n\nREPOSITORY\n    \u003chttps://github.com/michal-josef-spacek/Curses-UI-Time\u003e\n\nAUTHOR\n    Michal Josef Špaček \u003cmailto:skim@cpan.org\u003e\n\n    \u003chttp://skim.cz\u003e\n\nLICENSE AND COPYRIGHT\n    © 2014-2020 Michal Josef Špaček\n\n    BSD 2-Clause License\n\nDEDICATION\n    To Czech Perl Workshop 2014 and their organizers.\n\n    tty-clock program.\n\nVERSION\n    0.07\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichal-josef-spacek%2Fcurses-ui-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichal-josef-spacek%2Fcurses-ui-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichal-josef-spacek%2Fcurses-ui-time/lists"}