Jalali Date For Arduino (Persian Date)
omseven / jdate Goto Github PK
View Code? Open in Web Editor NEWJalali Date For Arduino (Persian Date)
Jalali Date For Arduino (Persian Date)
JDateLib.h: No such file or directory
Invalid library found in C:\Users*\Documents\Arduino\libraries\JDate-master: no headers files (.h) found in C:*\Hamid\Documents\Arduino\libraries\JDate-master\src
hello (سلام مهندس )
how can i convert rtc time to jalali with your cod?
looklike this
#include <DS3231_Simple.h>
DS3231_Simple Clock;
///jalali date shamsi
#include "JDateLib.h"
String jdate; // Jalali Date String
int JY, JM, JD; // Jalali Year & Month & Day Intiger
String timsd; //use for put time togather and convert to shamsi
int Ytim = "";
int Montim = "";
int Dtim = "";
int Htim = "";
int Mintim = "";
void setup() {
Clock.begin();
}
void readtime() {
DateTime MyDateAndTime;
MyDateAndTime = Clock.read();
Ytim = (MyDateAndTime.Year);
Montim = (MyDateAndTime.Month);
Dtim = (MyDateAndTime.Day);
Htim = (MyDateAndTime.Hour);
Mintim = (MyDateAndTime.Minute);
// conver to jalali
timsd +="20";
timsd +=Ytim;
timsd +=", ";
timsd +=Montim ;
timsd +=", ";
timsd +=Dtim ;
Date now(2018, 07, 31);
Ytim = (MyDateAndTime.Year);
Montim = (MyDateAndTime.Month);
Dtim = (MyDateAndTime.Day);
Htim = (MyDateAndTime.Hour);
Mintim = (MyDateAndTime.Minute);
// conver to jalali
timsd +="20";
timsd +=Ytim;
timsd +=", ";
timsd +=Montim ;
timsd +=", ";
timsd +=Dtim ;
Date now(timsd);
jdate = now.JDate();
JY = now.JYear();
JM = now.JMonth();
JD = now.JDay();
//Serial.println(JY);
//Serial.println(JM);
//Serial.println(JD);
Serial.println(jdate);
}
void loop () {
readtime();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.