 
 
 class RelativeTimeAgo
-  @generate: (date) ->
-    new this(date).toString()
-
   constructor: (@date) ->
     @calendarDate = CalendarDate.fromDate @date
 

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


domLoaded = false


          element.setAttribute "data-localized", true
          strftime time, format
        when "time-ago"
          relativeTimeAgo time

  setInterval ->
    event = document.createEvent "Events"
    event.initEvent "time:elapse", true, true
    document.dispatchEvent event
  , 60 * 1000

# Public API
@LocalTime = {strftime, relativeTimeAgo}
