{"id":13750678,"url":"https://github.com/monochromegane/mruby-time-strftime","last_synced_at":"2025-12-30T16:19:35.746Z","repository":{"id":146908097,"uuid":"51523803","full_name":"monochromegane/mruby-time-strftime","owner":"monochromegane","description":"Time#strftime for mruby.","archived":false,"fork":false,"pushed_at":"2018-03-30T17:07:02.000Z","size":17,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-03T08:02:36.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monochromegane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-02-11T15:26:07.000Z","updated_at":"2020-10-17T02:42:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4b08bff-b023-4712-ace1-a559ffb727d8","html_url":"https://github.com/monochromegane/mruby-time-strftime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monochromegane%2Fmruby-time-strftime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monochromegane%2Fmruby-time-strftime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monochromegane%2Fmruby-time-strftime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monochromegane%2Fmruby-time-strftime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monochromegane","download_url":"https://codeload.github.com/monochromegane/mruby-time-strftime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224869033,"owners_count":17383306,"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-08-03T08:00:44.132Z","updated_at":"2025-12-30T16:19:35.739Z","avatar_url":"https://github.com/monochromegane.png","language":"Ruby","readme":"# mruby-time-strftime   [![Build Status](https://travis-ci.org/monochromegane/mruby-time-strftime.svg?branch=master)](https://travis-ci.org/monochromegane/mruby-time-strftime)\n\nTime#strftime for mruby.\n\n## example\n\n```ruby\np Time.now.strftime('%c')\n#=\u003e \"Sat Jan  2 03:04:05 2016\"\n```\n\n## Format directives\n\n| format | description                                                       |\n| ------ | ----------------------------------------------------------------- |\n| Y      | Year with century if provided, will pad result at least 4 digits. |\n| C      | year / 100 (rounded down such as 20 in 2009)                      |\n| y      | year % 100 (00..99)                                               |\n| m      | Month of the year, zero-padded (01..12)                           |\n| B      | The full month name (January)                                     |\n| b      | The abbreviated month name (Jan)                                  |\n| h      | Equivalent to %b                                                  |\n| d      | Day of the month, zero-padded (01..31)                            |\n| e      | Day of the month, blank-padded ( 1..31)                           |\n| j      | Day of the year (001..366)                                        |\n| H      | Hour of the day, 24-hour clock, zero-padded (00..23)              |\n| k      | Hour of the day, 24-hour clock, blank-padded ( 0..23)             |\n| I      | Hour of the day, 12-hour clock, zero-padded (01..12)              |\n| l      | Hour of the day, 12-hour clock, blank-padded ( 1..12)             |\n| P      | Meridian indicator, lowercase (am or pm)                          |\n| p      | Meridian indicator, uppercase (AM or PM)                          |\n| M      | Minute of the hour (00..59)                                       |\n| S      | Second of the minute (00..60)                                     |\n| L      | Millisecond of the second (000..999)                              |\n| Z      | Abbreviated time zone name or similar information. (OS dependent) |\n| A      | The full weekday name  (Sunday)                                   |\n| a      | The abbreviated name (Sun)                                        |\n| u      | Day of the week (Monday is 1, 1..7)                               |\n| w      | Day of the week (Sunday is 0, 0..6)                               |\n| s      | Number of seconds since 1970-01-01 00:00:00 UTC.                  |\n| %      | Literal `%` character                                             |\n| c      | date and time (%a %b %e %T %Y)                                    |\n| D      | Date (%m/%d/%y)                                                   |\n| F      | The ISO 8601 date format (%Y-%m-%d)                               |\n| v      | VMS date (%e-%^b-%4Y)                                             |\n| x      | Same as %D                                                        |\n| X      | Same as %T                                                        |\n| r      | 12-hour time (%I:%M:%S %p)                                        |\n| R      | 24-hour time (%H:%M)                                              |\n| T      | 24-hour time (%H:%M:%S)                                           |\n\n\n## install by mrbgems\n- add conf.gem line to `build_config.rb`\n\n```ruby\nMRuby::Build.new do |conf|\n\n    # ... (snip) ...\n\n    conf.gem :github =\u003e 'monochromegane/mruby-time-strftime'\nend\n```\n\n## TODO\n\n- Format for week number of the year (`%U`, `%W`)\n- Flags (`^`, `#`, `-`, `_`, `0`, `number`)\n\n## License\n\n[MIT](https://github.com/monochromegane/mruby-time-strftime/blob/master/LICENSE)\n\n## Author\n\n[monochromegane](https://github.com/monochromegane)\n","funding_links":[],"categories":["Text Processing"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonochromegane%2Fmruby-time-strftime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonochromegane%2Fmruby-time-strftime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonochromegane%2Fmruby-time-strftime/lists"}