ot: converting minutes in hour-decimals
Rich Shepard
rshepard at appl-ecosys.com
Wed Jun 17 17:09:52 UTC 2020
On Wed, 17 Jun 2020, Wolfgang Engelmann wrote:
> off topic: How could I convert minutes in hour-decimals in a column such as
>
> 00:01
> 00:04
> 00:07
> 00:11
> 00:12
> 00:13
> 00:13
> 00:18
> 00:19
> 00:21
> 00:23
> 00:32
> 00:32
> .... and more
>
> so that e.g. 00:30 becomes 00.50 h
> either by a unix terminal command or by gnuplot or pyxplot?
Wolfgang,
Divide the minutes by 60. For example, 30. / 60. = 0.5 and 32. / 60. = 0.53
Then add them to the hours. It's similar to changing degrees-minutes-seconds
to decimal degrees.
You can use python for this on the command line.
HTH,
Rich
More information about the lyx-users
mailing list