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
#!/usr/bin/python | |
import os.path, subprocess, datetime, dateutil.parser, time, sys | |
def apple_year_offset(dateobj, years=0): | |
# Convert to a maleable format | |
mod_time = dateobj.timetuple() | |
# Offset year by number of years | |
mod_time = time.struct_time(tuple([mod_time[0]+years]) + mod_time[1:]) | |
# Convert back to a datetime obj | |
return datetime.datetime.fromtimestamp(int(time.mktime(mod_time))) |
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
startosinstall command & syntax | |
Command: startosinstall | |
Requires root access: Yes | |
Parameters: | |
- -usage: Displays all parameters available for the command. | |
- -agreetolicense: Agrees to the license agreement during deployment (Required for automated deployments). |