Giter VIP home page Giter VIP logo

calendar-task's Introduction

Groww Task

Task Description

Create a calendar application or Calendar lib/Class which exposes all the necessary methods like

1. Shows list of days of current month

2. Able to switch via months, years, go to particular date

3. Create a custom methods to retrieve a week by a given date

Implementation

Link to the demo video

An APK is also attached in the releases section.

Screenshots

Architecture Overview

 graph TD
	 CalendarLibrary --> MainViewModel --> UI(MainActivity)

Calendar Lib Documentation

Functions

Name Summary
getCurrentDay [jvm]
fun getCurrentDay(): Int
getCurrentMonth [jvm]
fun getCurrentMonth(): Int
getCurrentYear [jvm]
fun getCurrentYear(): Int
getDateWithOffset [jvm]
fun getDateWithOffset(date: Int, month: Int, year: Int): Int
getDateWithoutOffset [jvm]
fun getDateWithoutOffset(offsetDate: Int, month: Int, year: Int): Int
getFormattedDaysInMonth [jvm]
fun getFormattedDaysInMonth(month: Int, year: Int): List<String>
getNumOfDaysInMonth [jvm]
fun getNumOfDaysInMonth(month: Int, year: Int): List<Int>
getNumOfDaysInTheCurrentMonth [jvm]
fun getNumOfDaysInTheCurrentMonth(): List<Int>
Calculates the number of days in the current month
getStringFormattedDate [jvm]
fun getStringFormattedDate(date: Int, month: Int, year: Int): String
getWeekOfMonth [jvm]
fun getWeekOfMonth(date: Int, month: Int, year: Int): Int
getWeekOfYear [jvm]
fun getWeekOfYear(date: Int, month: Int, year: Int): Int
getWeekRange [jvm]
fun getWeekRange(date: Int, month: Int, year: Int): String

Properties

Name Summary
months [jvm]
val months: List<String>

Made with โค by Rithik Jain

calendar-task's People

Contributors

rithikjain avatar

Watchers

James Cloos avatar  avatar

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.