songster-sa / javadatecalculator Goto Github PK
View Code? Open in Web Editor NEWDate Calculator in Java
Date Calculator in Java
Date Calculator Given 2 dates, in the format dd/MM/yyyy, this calculator returns the number of days elapsed between the dates, excluding both begin and end dates Build code using Maven : mvn clean package Instructions to run : $ java -jar DateCalculator-0.0.1-SNAPSHOT.jar Sample output : Enter Experiment begin date as dd/mm/yyyy : 12/12/2000 Enter Experiment end date as dd/mm/yyyy : 01/01/2001 Dec 17, 2017 11:46:57 AM com.snug.DateCalculator calculateDuration INFO: Number of whole years passed : 0 Dec 17, 2017 11:46:57 AM com.snug.DateCalculator calculateDuration INFO: Number of whole leap years passed : 0 Dec 17, 2017 11:46:57 AM com.snug.DateCalculatorHelperService getDaysLeftInMonth INFO: Number of whole days passed in start month: 19 ----------------------------------------------- Result : Duration of Experiment in days : 19 Limitations: 1. Current implementation expects date to be in the format dd/MM/yyyy 2. Year should be between 1901 to 2999 Enhancements: 1. System should be able to handle all date formats ( ask user to enter the format or understand itself )
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.