Skip to content

Instantly share code, notes, and snippets.

@ismailgungor
Created March 21, 2019 15:31
Show Gist options
  • Save ismailgungor/cee11732d094265491db37bbb78a1f04 to your computer and use it in GitHub Desktop.
Save ismailgungor/cee11732d094265491db37bbb78a1f04 to your computer and use it in GitHub Desktop.
package com.kekyazilim.mvpblog.util
import java.sql.Date
import java.text.DateFormat
import java.util.*
/**
* Responsible to manage date calculation process
* @author ismailgungor
* @since 1.0
*/
class DateCalculationManager {
/**
* This method calculates current date and converts it to string
*
* @return date as String
* @author ismailgungor
* @since 1.0
*/
fun calculateDate(): String {
return DateFormat.getDateTimeInstance().format(Date(Calendar.getInstance().timeInMillis))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment