how to read systems current date and time
Answers were Sorted based on User's Feedback
In Unix, to know the current date and time, the command is
date.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / santana20142003
$date -u +%r -->02:26:38 PM
$ date -u +%T -->14:26:48
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kirtiranjan sahoo
we can use DATE command to know the system date and time.
and want to any modify, then
date +%Y-%m-%d
Y: Year
m: No of month
d: date number
If you want to know the yesterday date, simply you can write the below command
date -d "yesterday"
or
date -d "-1day"
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a command line shell?
how to create purchase order
What is the best shell scripting language?
What is difference between bash and shell?
How to print the first array element?
How to customise the existing shell?
How do I open the shell in cmd?
write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?
How do I save a powershell script?
What is MUTEX?
What is the first line in a shell script?
Explain about login shell?