toTime method

String toTime({
  1. JBLocale? locale,
})

Format: 'hh:mm a' → Example: '10:30 AM'

Implementation

String toTime({JBLocale? locale}) {
  return DateFormat('hh:mm a', locale?.name ?? App.localeCode).format(toJBTimezone());
}