getConferenceTimeString method
String
getConferenceTimeString(
- int startTime,
- int endTime
)
Implementation
String getConferenceTimeString(int startTime, int endTime) {
DateTime startUtcDateTime =
DateTime.fromMillisecondsSinceEpoch(startTime * 1000, isUtc: true);
DateTime endUtcDateTime =
DateTime.fromMillisecondsSinceEpoch(endTime * 1000, isUtc: true);
DateTime startLocalDateTime = startUtcDateTime.toLocal();
DateTime endLocalDateTime = endUtcDateTime.toLocal();
String startTimeString = _formatTime(startLocalDateTime);
String endTimeString = _formatTime(endLocalDateTime);
return '$startTimeString - $endTimeString';
}