How do I do date math in a bash script on OS X Leopard?

后端 未结 8 911
迷失自我
迷失自我 2021-02-03 21:15

I realize I could whip up a little C or Ruby program to do this, but I want my script to have as few dependencies as possible.

Given that caveat, how does one d

8条回答
  •  伪装坚强ぢ
    2021-02-03 21:36

    I used the following on, macOS Mojave 10.14.5, to find the DHCP renewal time open

    date -v +`ipconfig getoption en0 renewal_t1_time_value`S
    

提交回复
热议问题