Search Results

Search: Posts Made By: bpaac
14,797
Posted By bpaac
Sorry for late reply. When I execute on my...
Sorry for late reply.

When I execute on my bash I get below errors
echo "$(date +'%s' -d 2007-09-02)/86400"-"$(date +'%s' -d 2007-09-01)"/86400 | bc
Invalid character in date/time specification....
14,797
Posted By bpaac
Date conversion from Standard/given format to seconds/epoch
I am trying get time difference of two dates in secs. Initially I want to convert a standard date format to epoch for two dates and then subtract the two epoch dates.
Example :
date -d "2007-09-01...
Showing results 1 to 2 of 2

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