Created
March 21, 2019 15:31
-
-
Save ismailgungor/cee11732d094265491db37bbb78a1f04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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