This file contains 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
# | |
# MIT License - (c) 2011 John Mettraux | |
# | |
require 'rubygems' | |
require 'parslet' # gem install parslet | |
module MyJson |
This file contains 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
function CalculateFromOvertimeCalendars() { | |
var file = SpreadsheetApp.getActiveSpreadsheet(); | |
var settingSheet = file.getSheetByName("Setting"); | |
var settingRange = settingSheet.getRange("A2:C50"); | |
var month = parseInt(settingSheet.getRange("G2").getValue()); | |
var thisMonth = new Date(); | |
var sheetName = thisMonth.getFullYear() + "-" + (month); |