GithubHelp home page GithubHelp logo

jdate's Introduction

JDate

Jalali Date For Arduino (Persian Date)

jdate's People

Contributors

omseven avatar

Stargazers

Ayrik avatar Yaghob avatar  avatar امیررضا خزلی  avatar Hamid Rouhi avatar  avatar mohammad avatar  avatar Alireza Ahmadi (Arma) avatar majiq avatar Infinite Dreams avatar  avatar Ahmad avatar  avatar

Watchers

 avatar

jdate's Issues

no headers files (.h) found

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

how use string or somting to import time (ex ds3231) to jalali

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();
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.