Created
January 19, 2021 16:07
-
-
Save rojenzaman/9b17d7a26a77eb5fe836f6ec1238c246 to your computer and use it in GitHub Desktop.
Create RSS pubDate with BASH
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
#format: Tue, 19 Jan 2021 19:07:07 +0300 | |
TZ=`date +"%z"` | |
TIME=`date +"%H:%M:%S"` | |
WEEKDAY=`date +"%a"` | |
DATE=`date +"%d"` | |
MONTH=`date +"%b"` | |
YEAR=`date +"%Y"` | |
FORMATED_DATE_TIME="$WEEKDAY, $DATE $MONTH $YEAR $TIME $TZ" | |
echo "Formated time: $FORMATED_DATE_TIME" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What a relief! Thanks for notice. I wish that I read manual for this :)