help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Duration between two time stamps


From: Seth David Schoen
Subject: Re: Duration between two time stamps
Date: Wed, 18 Aug 2021 19:22:57 -0700

hancooper writes:

> What command would one use to set A and B ?

You said you had the timestamps already, so I imagined that they would
be stored in shell variables.  In this case, A and B just represent the
names of the shell variables.

You can set a shell variable with the = sign, for example

A=1000

or

A="$foo"

to reuse the value of an existing variable, or

A=$(date +%s)

to capture the output of another shell command.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]