Last active
October 14, 2017 08:22
-
-
Save int128/c5bd317c429f0994523c to your computer and use it in GitHub Desktop.
Record history on Google Spreadsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add a trigger to run everyday | |
function appendHistoryRow() { | |
var app = SpreadsheetApp.getActive(); | |
app.setSpreadsheetTimeZone('Asia/Tokyo'); | |
var historyRow = app.getRangeByName('history_row'); | |
var values = historyRow.getValues(); | |
values[0][0] = new Date(); | |
historyRow.getSheet().appendRow(values[0]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment