Computer Science, asked by pratikmagadum728, 11 months ago

The time command is used to display time

Answers

Answered by Anonymous
0

Answer:

In computing, TIME is a command in DEC RT-11, DOS, IBM OS/2, Microsoft Windows, Linux and a number of other operating systems that is used to display and set the current system time.

date command in Linux with examples. date command is used to display the system date and time. date command is also used to set date and time of the system.

Explanation:

date command is used to display the system date and time. date command is also used to set date and time of the system. By default the date command displays the date in the time zone on which unix/linux operating system is configured.You must be the super-user (root) to change the date and time.

Syntax:

date [OPTION]... [+FORMAT]

date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

Options with Examples

1: date (no option) : With no options, the date command displays the current date and time, including the abbreviated day name, abbreviated month name, day of the month, the time separated by colons, the time zone name, and the year.

Command:

$date

Output:

Tue Oct 10 22:55:01 PDT 2017

Note : Here unix system is configured in pacific daylight time.

2:-u Option: Displays the time in GMT(Greenwich Mean Time)/UTC(Coordinated Universal Time )time zone.

Similar questions