           element.setAttribute "data-localized", true
           strftime time, format
         when "time-ago"
-          RelativeTimeAgo.generate time
+          relativeTimeAgo time
 
   setInterval ->
     event = document.createEvent "Events"
     event.initEvent "time:elapse", true, true
     document.dispatchEvent event
   , 60 * 1000
+
+# Public API
+@LocalTime = {strftime, relativeTimeAgo}

  formatTime: ->
    strftime @date, '%l:%M%P'


domLoaded = false




class RelativeTimeAgo
  constructor: (@date) ->
    @calendarDate = CalendarDate.fromDate @date

