All Projects → zoghal → Persiandate4mysql

zoghal / Persiandate4mysql

pDate is a Gregorian / Jalali(Shamsi) date convertor functions for MySQL 5.1+

Projects that are alternatives of or similar to Persiandate4mysql

Transformalize
Configurable Extract, Transform, and Load
Stars: ✭ 125 (-4.58%)
Mutual labels:  mysql
Dailyfresh
Django-天天生鲜电商学习项目
Stars: ✭ 127 (-3.05%)
Mutual labels:  mysql
Zhttp
基于swoole的异步轻量级web框架,内部封装协程异步非阻塞全套mysql、redis、mongo、memcached连接池,可以轻松start、reload、stop,加入数据库的查询模块,框架已经封装好近乎同步写法,底层异步调用
Stars: ✭ 131 (+0%)
Mutual labels:  mysql
Android Notes
Articles, notes, interview questions and resources management for Android.
Stars: ✭ 126 (-3.82%)
Mutual labels:  mysql
Basicdb
PDO ile geliştirilmiş kullanımı kolay veritabanı sınıfıdır.
Stars: ✭ 127 (-3.05%)
Mutual labels:  mysql
Griffon Vm
Griffon Data Science Virtual Machine
Stars: ✭ 128 (-2.29%)
Mutual labels:  mysql
Aws Data Wrangler
Pandas on AWS - Easy integration with Athena, Glue, Redshift, Timestream, QuickSight, Chime, CloudWatchLogs, DynamoDB, EMR, SecretManager, PostgreSQL, MySQL, SQLServer and S3 (Parquet, CSV, JSON and EXCEL).
Stars: ✭ 2,385 (+1720.61%)
Mutual labels:  mysql
App Turbo
A framework based on tornado for easier development, scaling up and maintenance
Stars: ✭ 131 (+0%)
Mutual labels:  mysql
Kangaroo
SQL client and admin tool for popular databases
Stars: ✭ 127 (-3.05%)
Mutual labels:  mysql
Notes
Including JVM, Java concurrency, Spring framework, Data structure and Algorithm, Computer network, Design pattern, Python, C++, Linux, Mysql, Redis,MATLAB, Git and other tools, etc.
Stars: ✭ 131 (+0%)
Mutual labels:  mysql
Dbmate
🚀 A lightweight, framework-agnostic database migration tool.
Stars: ✭ 2,228 (+1600.76%)
Mutual labels:  mysql
Online Shopping System Advanced
Demo site
Stars: ✭ 127 (-3.05%)
Mutual labels:  mysql
Sworm
a write-only ORM for Node.js
Stars: ✭ 128 (-2.29%)
Mutual labels:  mysql
Notes
👋 如果有一天我失忆了,忘记了所有的前端知识,我希望这个项目能让我很快掌握
Stars: ✭ 126 (-3.82%)
Mutual labels:  mysql
Pyjson tricks
Extra features for Python's JSON: comments, order, numpy, pandas, datetimes, and many more! Simple but customizable.
Stars: ✭ 131 (+0%)
Mutual labels:  datetime
Directus
Open-Source Data Platform 🐰 — Directus wraps any SQL database with a real-time GraphQL+REST API and an intuitive app for non-technical users.
Stars: ✭ 13,190 (+9968.7%)
Mutual labels:  mysql
Db Tutorial
💾 db-tutorial 是一个数据库教程。
Stars: ✭ 128 (-2.29%)
Mutual labels:  mysql
Sqlbuilder
A powerful, fast, cross-platform SQL Builder for PHP. Convert your structured data into SQL queries with a fluent style interface and targeting on all the mainstream database (MySQL, PostgreSQL, SQLite)
Stars: ✭ 131 (+0%)
Mutual labels:  mysql
Firenze
Adapter based JavaScript ORM for Node.js and the browser
Stars: ✭ 131 (+0%)
Mutual labels:  mysql
Goose
A database migration tool. Supports SQL migrations and Go functions.
Stars: ✭ 2,112 (+1512.21%)
Mutual labels:  mysql

[MySQL] pDate

Content:

About

[MySQL] pDate is a Gregorian / Jalali date converter functions for MySQL.

Requirements

  • MySQL 5+

Download

Installation

Import pDate.sql in your database.

Usage

You can use these six functions, which are provided on a set:

PDATE(datetime)

Takes georgian datetime as input and returns jalali date in text format.

PMONTH(datetime)

Takes georgian datetime as input and returns jalali month number in text format.

PMONTHNAME(datetime)

Takes georgian datetime as input and returns jalali month name in text format.

PYEAR(datetime)

Takes georgian datetime as input and returns jalali year number in text format.

PDAY(datetime)

Takes georgian datetime as input and returns jalali day number in text format.

GDATE(year smallint, month smallint, day smallint)

Takes jalali date in "year/month/day" format as input and returns georgian date in datetime format.

GDATESTR(jdate char(10))

Takes 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.

You can not enter Jalali year in short format! for example '90/03/03' shows the 90th Jalali year, not 1390!


Here is simple line of sql code which you can use it to test the set of functions:

SELECT	pdate(NOW()),
		pyear('2009-09-22'),
        pmonth('2009-09-22'),
        pmonthname(NOW()),
        gdate(1366,9,19),
        gdatestr('1366/9/19');

License

GNU General Public License. http://www.gnu.org/licenses/gpl.txt

Issues/Feedbacks

https://github.com/zoghal/Presian-Date-for-MySQL/issues

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].