Documentation blog post snippet 2
/* | |
Returns the corresponding row number of a given month in the "resume sheet" | |
@month: The value of new date.getMonth() for the month you want | |
*/ | |
function getResumeRow(month) { | |
/* | |
16 is the row number of Jan/15 in the sheet. It was chosen because the | |
previous months were already processed when this code was created. | |
Doing this way, it is easier to determine which line corresponds | |
to which month, without the need of a more complex routine. | |
*/ | |
return 16 + month; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment