User Tools

Site Tools


bash:date_time:parsing_date_and_time

BASH - Date & Time - Parsing Date and Time

#!/bin/bash
year=`date +%Y`
month=`date +%m`
day=`date +%d`
hour=`date +%H`
minute=`date +%M`
second=`date +%S`
echo `date`
echo "Current Date is: $day-$month-$year"
echo "Current Time is: $hour:$minute:$second"
bash/date_time/parsing_date_and_time.txt · Last modified: 2021/01/26 16:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki