Search Results

Search: Posts Made By: Rashu123
35,458
Posted By Rashu123
According to my bash script: ...
According to my bash script:

DATE=`TZ=IST-24 date |awk -F' ' '{print $2,$3}'`
echo $DATE
TIME="10:00:00 IST"
DATE1=$DATE" "$TIME" "`date +%Y`
echo $DATE1
TMRW_DATE=`date --date="$DATE1"...
35,458
Posted By Rashu123
To be more specific, in bash ...
To be more specific, in bash

TMRW_DATE=`date --date="$DATE" +"%s"`

where 'date --date' is converting the string $DATE into its epoch time (in sec) but in ksh there is no such option with...
35,458
Posted By Rashu123
How to convert string(variable) into date( epoch) in ksh on HPUX machine?
Hi all,
I have used a bash script which ultimately converts a string into date using date --date option:


DATE=$DATE" "$TIME" "`date +%Y` //concatenating 2 strings
TMRW_DATE=`date...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy