{"id":21840251,"url":"https://github.com/gocom/rah_get_date","last_synced_at":"2025-10-15T14:51:21.771Z","repository":{"id":2346759,"uuid":"3309392","full_name":"gocom/rah_get_date","owner":"gocom","description":"Outputs date and time from the requested URL","archived":false,"fork":false,"pushed_at":"2012-01-31T00:56:30.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T21:04:12.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rahforum.biz/plugins/rah_get_date","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gocom.png","metadata":{"files":{"readme":"README.textile","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}},"created_at":"2012-01-30T22:05:54.000Z","updated_at":"2022-04-24T17:00:38.000Z","dependencies_parsed_at":"2022-07-19T08:29:54.539Z","dependency_job_id":null,"html_url":"https://github.com/gocom/rah_get_date","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gocom/rah_get_date","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_get_date","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_get_date/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_get_date/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_get_date/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocom","download_url":"https://codeload.github.com/gocom/rah_get_date/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocom%2Frah_get_date/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274129814,"owners_count":25227266,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-27T21:25:23.857Z","updated_at":"2025-10-15T14:51:16.734Z","avatar_url":"https://github.com/gocom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. rah_get_date\n\np. The plugin, rah_get_date, outputs date and time from the requested url. Supports \"Textpattern's\":http://www.textpattern.com build in @date@ and @month@ -GET variables, and outputs formatted date based on those two GET values. That way you can, for example, output month header to month separated article listing pages.\n\nh2. List of features\n\n* Output date from @?date=@ and/or @?month=@ get values.\n* Format date just like you can with @\u003ctxp:posted /\u003e@.\n\nh2. Requirements\n\np. Minimum requirements:\n\n* TXP 4.x.x+\n\np. Recommended:\n\n* TXP 4.4.1 or newer.\n\nh2. Installation and usage\n\np. The basic method stands: paste plugin code to the plugin install textarea and run the automatic setup. Activate the plugin, and you are ready to use the new tag, @\u003ctxp:rah_get_date /\u003e@ like others.\n\nh2. Attributes\n\nThe tag is @\u003ctxp:rah_get_date /\u003e@ and attributes for it follow. All attributes are optional.\n\np. *format*\nDate format used to output the date. Any valid \"strftime()\":http://php.net/strftime string value since \"iso8601,\":http://en.wikipedia.org/wiki/ISO_8601 w3cdtf, or \"rfc822.\":http://www.w3.org/Protocols/rfc822/#z28\nDefault: @format=\"%Y %B\"@ Example: @\"%Y %m %d\"@.\n\np. *format_year*\nAllows specific formatting for dates that only specify the year (@YYYY@). If the attribute is set, the additional formatting is used. Same formatting rules apply.\nDefault: @unset@ Example: @format_year=\"Articles posted during %Y\"@\n\np. *format_month*\nAllows specific formatting for dates that only specify the year and the month of the year (@YYYY-mm@). If the attribute is set, the additional formatting is used. Same formatting rules apply.\nDefault: @unset@ Example: @format_month=\"%B, %Y\"@\n\np. *format_date*\nAllows specific formatting for dates that only specify the year, the month and the day of the month (@YYYY-mm-dd@). If the attribute is set, the additional formatting is used. Same formatting rules apply.\nDefault: @unset@ Example: @format_date=\"%B %d, %Y\"@\n\np. *format_hour*\nAllows specific formatting for dates that only specify the year, month, day and hour of the day (@YYYY-mm-dd HH@). If the attribute is set, the additional formatting is used. Same formatting rules apply.\nDefault: @unset@ Example: @format_hour=\"Posted on %H of %d\"@\n\np. *format_minute*\nAllows specific formatting for dates that only specify the year, month, day, hours and minutes (@YYYY-mm-dd HH:MM@). If the attribute is set, the additional formatting is used. Same formatting rules apply.\nDefault: @unset@ Example: @format_minute=\"%H:%M\"@\n\np. *format_second*\nAllows specific formatting for dates that only specify the year, month, day, hours, minutes and seconds (@YYYY-mm-dd HH:MM:SS@). If the attribute is set, the additional formatting is used. Same formatting rules apply.\nDefault: @unset@ Example: @format_second=\"%Y %B, %d %H:%M:%S\"@\n\np. *format_now*\nFormatting used if the requested date is the current time. Current time's condition is set with the @now_condition@ attribute. By default, if the requested date/time is within the current day, the formatting defined in @format_now@ is used.\nDefault: @unset@ Example: @format_now=\"Articles posted today\"@\n\np. *now_condition*\nDefines what dates are considered as current time. Set the date format that is used in matching current and requested dates. By default matches days (today).\nDefault: @now_condition=\"%Y-%m-%d\"@ Example: @\"%Y-%m\"@\n\nh2. Examples\n\nh3. Basic usage\n\nbc. \u003ctxp:rah_get_date format=\"%Y %B\" /\u003e\n\np. Outputs @\"2009 March\"@ if requested URI is @http://mysite.com/path/?month=2009-3@.\n\nh3. Use specific formatting for dates that only define the year\n\nThe example uses @format_year@ attribute to set the formatting for the dates that only specify the year.\n\nbc. \u003ctxp:rah_get_date format=\"%Y %B\" format_year=\"Posted during %Y\" /\u003e\n\np. Outputs @\"2009 March\"@ if the requested URL is @http://mysite.com/path/?month=2009-3@ and @\"Posted during 2008\"@ if the requested URL is @http://mysite.com/path/?month=2008@\n\nh3. Output @\"Posted today\"@, if the requested timestamp is today.\n\nbc. \u003ctxp:rah_get_date now_condition=\"%Y-%m-%d\" format_now=\"Posted today\" /\u003e\n\nh2. Changelog\n\nh3. Version 0.2 - 2011/05/22\n\n* Added: support for additional formatting rules applied based on timestamp's accuracy. Added attributes: @format_year@, @format_month@, @format_date@, @format_hour@, @format_minute@, @format_second@, @format_now@, @now_condition@ and @date@.\n* Added: Ability to set the date using @date@ attribute in addition to the URL parameter.\n* Now uses safe_strtotime() instead of strtotime() to format the dates.\n* Now checks if the provided date is in valid strtotime() format.\n* Skip date formatting if the resulting formatting string is empty.\n\nh3. Version 0.1 - 2009/03/06\n\n* First release.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Frah_get_date","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocom%2Frah_get_date","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocom%2Frah_get_date/lists"}