{"id":13780820,"url":"https://github.com/zoghal/PersianDate4MySQL","last_synced_at":"2025-05-11T14:33:58.152Z","repository":{"id":49369876,"uuid":"1907700","full_name":"zoghal/PersianDate4MySQL","owner":"zoghal","description":"pDate is a Gregorian / Jalali(Shamsi) date convertor functions for MySQL 5.1+","archived":false,"fork":false,"pushed_at":"2023-03-02T09:09:02.000Z","size":29,"stargazers_count":175,"open_issues_count":13,"forks_count":66,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-04-14T07:11:27.418Z","etag":null,"topics":["datetime","jalali","mysql"],"latest_commit_sha":null,"homepage":"http://saleh.soozanchi.ir/1388/07/05/%D8%AA%D9%88%D8%A7%D8%A8%D8%B9-%D8%AA%D8%A7%D8%B1%DB%8C%D8%AE-%D8%B4%D9%85%D8%B3%DB%8C-%D8%AC%D9%87%D8%AA-%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87-%D8%AF%D8%B1-mysql/","language":null,"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/zoghal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"custom":["https://payping.ir/@zoghal"]}},"created_at":"2011-06-16T20:18:54.000Z","updated_at":"2024-03-24T11:35:09.000Z","dependencies_parsed_at":"2022-08-14T06:30:22.628Z","dependency_job_id":null,"html_url":"https://github.com/zoghal/PersianDate4MySQL","commit_stats":{"total_commits":24,"total_committers":10,"mean_commits":2.4,"dds":0.75,"last_synced_commit":"16d4c94a71a26854c83d9990e52cfeff53d92478"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoghal%2FPersianDate4MySQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoghal%2FPersianDate4MySQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoghal%2FPersianDate4MySQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoghal%2FPersianDate4MySQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoghal","download_url":"https://codeload.github.com/zoghal/PersianDate4MySQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224847858,"owners_count":17379805,"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":["datetime","jalali","mysql"],"created_at":"2024-08-03T18:01:20.129Z","updated_at":"2024-11-17T16:30:28.734Z","avatar_url":"https://github.com/zoghal.png","language":null,"readme":"# [MySQL] pDate\n  \n\nContent:\n* [About](#about)\n* [Requirements](#requirements)\n* [Download](#download)\n* [Installation](#installation)\n* [Usage](#usage)\n* [License](#license)\n* [Issues/Feedbacks](#issuesfeedbacks)\n\n\n## About\n\n[MySQL] pDate is a Gregorian / Jalali date converter functions for MySQL.\n\n## Requirements\n\n* MySQL 5+\n\n## Download\n\n* zip: https://github.com/zoghal/Presian-Date-for-MySQL/zipball/master\n* tgz: https://github.com/zoghal/Presian-Date-for-MySQL/tarball/master\n* git http: `git clone http: https://github.com/zoghal/Presian-Date-for-MySQL.git`\n* git: `git clone git://github.com/zoghal/Presian-Date-for-MySQL.git`\n\n## Installation\n\nImport __pDate.sql__ in your database.\n\n## Usage\n\nYou can use these six functions, which are provided on a set:\n\n#### PDATE(datetime)\nTakes georgian datetime as input and returns jalali date in text format.\n\n#### PMONTH(datetime)\nTakes georgian datetime as input and returns jalali month number in text format.\n\n#### PMONTHNAME(datetime)\nTakes georgian datetime as input and returns jalali month name in text format.\n\n#### PYEAR(datetime)\nTakes georgian datetime as input and returns jalali year number in text format.\n\n#### PDAY(datetime)\nTakes georgian datetime as input and returns jalali day number in text format.\n\n#### GDATE(year smallint, month smallint, day smallint)\nTakes jalali date in \"year/month/day\" format as input and returns georgian date in datetime format.\n\n#### GDATESTR(jdate char(10))\nTakes jalali date in string format (e.g: `'1390/3/3'` or `'1390/03/3'` or `'1390/3/03` or `'1390/03/03' `) as input and returns georgian date in datetime format.\n\n_You can not enter Jalali year in short format! for example `'90/03/03'` shows the 90th Jalali year, not 1390!_\n\n---\n\nHere is simple line of sql code which you can use it to test the set of functions:\n\n```\nSELECT\tpdate(NOW()),\n\t\tpyear('2009-09-22'),\n        pmonth('2009-09-22'),\n        pmonthname(NOW()),\n        gdate(1366,9,19),\n        gdatestr('1366/9/19');\n```\n \n  \n## License\n\nGNU General Public License. [http://www.gnu.org/licenses/gpl.txt](http://www.gnu.org/licenses/gpl.txt)\n\n## Issues/Feedbacks\n\nhttps://github.com/zoghal/Presian-Date-for-MySQL/issues\n","funding_links":["https://payping.ir/@zoghal"],"categories":["Jalali Date"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoghal%2FPersianDate4MySQL","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoghal%2FPersianDate4MySQL","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoghal%2FPersianDate4MySQL/lists"}