Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.
/ jdate Public archive

JDate, is a JavaScript like Jalali date & time library for Browsers & NodeJS

Notifications You must be signed in to change notification settings

eAmin/jdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

##JDate

JDate v0.0.2 beta

JDate, is a JavaScript like Jalali date & time library for Browsers & NodeJS

##Usage

##Browsers var jdate = JDate();

console.log(jdate.getFullYear()); // 1391
console.log(jdate.getMonth()); // 01
console.log(jdate.getDate()); // 15
console.log(jdate.getDay()); // 4
console.log(jdate.getTime()); // 1336070315814
console.log(jdate.toString()); // 1391-01-15 22:08:50.398 +03:30
console.log(jdate.toString('yyyy/MMMM/dd HH:mm:ss')); // 1391/01/15 22:08:50

##Node.JS to install use npm and insert folowing command npm install jdate and use in your project

var jdate = require('jdate').JDate();

console.log(jdate.getFullYear()); // 1391
console.log(jdate.getMonth()); // 01
console.log(jdate.getDate()); // 15
console.log(jdate.getDay()); // 4
console.log(jdate.getTime()); // 1336070315814
console.log(jdate.toString()); // 1391-01-15 22:08:50.398 +03:30
console.log(jdate.toString('yyyy/MMMM/dd HH:mm:ss')); // 1391/01/15 22:08:50

##Author

Amin Akbari

Copyright (c) 2012 Amin AKbari

http://eamin.me/

##TODO: JDate.parse() JDate.setTimezone() JDate.diff()

##License

Licensed under the MIT Style License

About

JDate, is a JavaScript like Jalali date & time library for Browsers & NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published