{"id":20607506,"url":"https://github.com/loopj/commonjs-date-formatting","last_synced_at":"2025-10-24T19:33:32.395Z","repository":{"id":1109681,"uuid":"977653","full_name":"loopj/commonjs-date-formatting","owner":"loopj","description":"PHP style strftime date formatting for CommonJS apps.","archived":false,"fork":false,"pushed_at":"2010-12-03T00:15:09.000Z","size":88,"stargazers_count":16,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T03:55:26.150Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loopj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-11T03:29:04.000Z","updated_at":"2024-04-18T04:38:10.000Z","dependencies_parsed_at":"2022-07-06T08:11:23.538Z","dependency_job_id":null,"html_url":"https://github.com/loopj/commonjs-date-formatting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loopj/commonjs-date-formatting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fcommonjs-date-formatting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fcommonjs-date-formatting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fcommonjs-date-formatting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fcommonjs-date-formatting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loopj","download_url":"https://codeload.github.com/loopj/commonjs-date-formatting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Fcommonjs-date-formatting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717080,"owners_count":26033535,"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-10-07T02:00:06.786Z","response_time":59,"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-16T10:07:39.540Z","updated_at":"2025-10-07T03:38:01.017Z","avatar_url":"https://github.com/loopj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Date Formatting Support (strftime) for CommonJS + Node.js\n===========================================\n\nThis CommonJS module provides PHP-style date formatting support (strftime),\nto allow you to print javascript dates according to a format specifier.\n\nBased heavily on Philip S Tellis' version for client side javascript.\n\nTested on node.js. \n\nInstall:\n--------\n    cd ~/.node_libraries\n    git clone git://github.com/loopj/commonjs-date-formatting.git date_format\n\nBasic usage:\n-----------\n    // Load the module\n    var strftime = require(\"date_format\").strftime;\n\n    // Print the current date in mm/dd/yyyy format\n    console.log(strftime(new Date(), \"%m/%d/%Y\"));\n\nSupported Format Specifiers:\n-------------------------\n- %a - abbreviated weekday name according to the current locale\n- %A - full weekday name according to the current locale\n- %b - abbreviated month name according to the current locale\n- %B - full month name according to the current locale\n- %c - preferred date and time representation for the current locale\n- %C - century number (the year divided by 100 and truncated to an integer, range 00 to 99)\n- %d - day of the month as a decimal number (range 01 to 31)\n- %D - same as %m/%d/%y\n- %e - day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')\n- %g - like %G, but without the century\n- %G - The 4-digit year corresponding to the ISO week number\n- %h - same as %b\n- %H - hour as a decimal number using a 24-hour clock (range 00 to 23)\n- %I - hour as a decimal number using a 12-hour clock (range 01 to 12)\n- %j - day of the year as a decimal number (range 001 to 366)\n- %m - month as a decimal number (range 01 to 12)\n- %M - minute as a decimal number\n- %n - newline character\n- %p - either `AM' or `PM' according to the given time value, or the corresponding strings for the current locale\n- %P - like %p, but lower case\n- %r - time in a.m. and p.m. notation equal to %I:%M:%S %p\n- %R - time in 24 hour notation equal to %H:%M\n- %S - second as a decimal number\n- %t - tab character\n- %T - current time, equal to %H:%M:%S\n- %u - weekday as a decimal number [1,7], with 1 representing Monday\n- %U - week number of the current year as a decimal number, starting with the first Sunday as the first day of the first week\n- %V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week.\n- %w - day of the week as a decimal, Sunday being 0\n- %W - week number of the current year as a decimal number, starting with the first Monday as the first day of the first week\n- %x - preferred date representation for the current locale without the time\n- %X - preferred time representation for the current locale without the date\n- %y - year as a decimal number without a century (range 00 to 99)\n- %Y - year as a decimal number including the century\n- %z - numerical time zone representation\n- %Z - time zone name or abbreviation\n- %% - a literal `%' character","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Fcommonjs-date-formatting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floopj%2Fcommonjs-date-formatting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Fcommonjs-date-formatting/lists"}