Script Templates

FREE WEBINAR

April 10, 2025 | 11:30 EDT & 6:30 a.m. GMT

Patch Tuesday Updates from ManageEngine

REGISTER NOW
Script Details of Script to set time format
Parameters - "<format>"
Configuration Type - USER/COMPUTER
Example: EEE d MMM h:mm:ss a
EEE - day of the week (not mandatory)
d MMM represents the date and month (not mandatory, non - atomic)
h represents 12-hour format, for 24-hour format use HH (Mandatory)
mm is minutes (Mandatory)
ss is seconds (Mandatory)
a is to indicate if AM/PM can be there (not mandatory)
the arguments should be present in the order mentioned in the example
Script Name SetDateFormat.sh
Description Script to set time format
Parameters - "<format>"
Configuration Type - USER/COMPUTER
Example: EEE d MMM h:mm:ss a
EEE - day of the week (not mandatory)
d MMM represents the date and month (not mandatory, non - atomic)
h represents 12-hour format, for 24-hour format use HH (Mandatory)
mm is minutes (Mandatory)
ss is seconds (Mandatory)
a is to indicate if AM/PM can be there (not mandatory)
the arguments should be present in the order mentioned in the example
Script Arguments --
Exit Code 0
Added Date Sep 5, 2017
Script type sh
Category computer management
Platform Mac
Script

Disclaimer: This webpage is intended to provide you information about executing about execting custom script for computers. The information is provided "As Is" without warranty of any kind.

Back to Top