dateTimeToGMT
fun dateTimeToGMT(gmtFormat: String = getCurrentTimeZone(), dateFormat: String = FORMAT_YYYY_MM_DD_HH_MM_SS): String
Formats a Date of System.currentTimeMillis into a date/time string by parsing dateFormat and gmtFormat.
If you don't set the gmtFormat or dateFormat,it will parse current local time in FORMAT_YYYY_MM_DD_HH_MM_SS format by default.
Return
the formatted time string.
Since
0.0.4
Parameters
gmtFormat
the ID for a TimeZone.
dateFormat
the pattern describing the date and time format.