Skip to main content

Thanks for your help. I already solved it.

My solution: Use this simple bash script to get timestamp from hwclock -D command.

function timestamp_from_rtc_get {   
    tmp="$(sudo hwclock -D)"  
    tmp=${tmp##*= } 
    out=${tmp%% seconds*} 
    echo $out
}
timestamp_from_rtc_get

Thanks for your help. I already solved it.

My solution: Use this simple bash script to get timestamp from hwclock -D command.

function timestamp_from_rtc_get {   
    tmp="$(sudo hwclock -D)"  
    tmp=${tmp##*= } 
    out=${tmp%% seconds*} 
    echo $out
}
timestamp_from_rtc_get

Use this simple bash script to get timestamp from hwclock -D command.

function timestamp_from_rtc_get {   
    tmp="$(sudo hwclock -D)"  
    tmp=${tmp##*= } 
    out=${tmp%% seconds*} 
    echo $out
}
timestamp_from_rtc_get
deleted 17 characters in body
Source Link

Thanks for your help. I already solved it.

My solution: Use this simple bash script to get timestamp from hwclock -D command.

function timestamp_from_rtc_get {   
    tmp="$(sudo hwclock -D)"  
    #echo $tmp
    tmp=${tmp##*= } 
    out=${tmp%% seconds*} 
    echo $out
}
timestamp_from_rtc_get

Thanks for your help. I already solved it.

My solution: Use this simple bash script to get timestamp from hwclock -D command.

function timestamp_from_rtc_get {   
    tmp="$(sudo hwclock -D)"  
    #echo $tmp
    tmp=${tmp##*= } 
    out=${tmp%% seconds*} 
    echo $out
}
timestamp_from_rtc_get

Thanks for your help. I already solved it.

My solution: Use this simple bash script to get timestamp from hwclock -D command.

function timestamp_from_rtc_get {   
    tmp="$(sudo hwclock -D)"  
    tmp=${tmp##*= } 
    out=${tmp%% seconds*} 
    echo $out
}
timestamp_from_rtc_get
Source Link

Thanks for your help. I already solved it.

My solution: Use this simple bash script to get timestamp from hwclock -D command.

function timestamp_from_rtc_get {   
    tmp="$(sudo hwclock -D)"  
    #echo $tmp
    tmp=${tmp##*= } 
    out=${tmp%% seconds*} 
    echo $out
}
timestamp_from_rtc_get