     sheet.getName(), cell, n, t
   return isDateCurrent n, t
 
+formatRow = (row) ->
+  dest = spreadsheet.getRange "A#{row}:A"
+  source = dest.offset -1, 0
+  source.copyTo dest, formatOnly: true
+
+addNewRow = (sheet) ->
+  sheet.appendRow [new Date()]
+  row = sheet.getMaxRows()
+  formatRow row
+  dump "addNewRow new and formatted %s", row
+
+checkAndAddNewRow = ->
+  ss = SpreadsheetApp.getActiveSpreadsheet()
+  sheet = ss.getSheets()[0]
+  dump "checkAndAddNewRow - examine date on sheet '%s'", sheet.getName()
+  addNewRow sheet if not isMaxRowCurrent sheet
+  flushLog()
+  return
+
 
 expireCache = ->
   sheets = spreadsheet.getSheets()

  flushLog()
  return

formatRow = (row) ->
  dest = spreadsheet.getRange "A#{row}:A"
  source = dest.offset -1, 0
  source.copyTo dest, formatOnly: true

addNewRow = (sheet) ->
  sheet.appendRow [new Date()]
  row = sheet.getMaxRows()
  formatRow row
  dump "addNewRow new and formatted %s", row

isDateCurrent = (newDate, oldDate) ->
  ny = newDate.getFullYear()
  oy = oldDate.getFullYear()

Automatically add new line
###
onDaily = () ->
  dump "onDaily - possibly add new row"
  checkAndAddNewRow()
  return

###
