table of contents
cs_convert_time(8) | ClusterTools2 | cs_convert_time(8) |
NAME¶
cs_convert_time - convert date/time string between Unix Epoch and wall clock
SYNOPSIS¶
cs_convert_time <date/time string>
DESCRIPTION¶
cs_convert_time converts date/time strings between Unix
Epoch and wall clock.
The scripts tries to figure out the desired direction from the format of the
given argument.
EXIT STATUS¶
0 Successful program execution.
>0 Usage, syntax or execution errors.
EXAMPLES¶
- * convert a given Unix Epoch time into wall clock date/time
-
# cs_convert_time 484422540 - * convert a given wall clock date/time into Unix Epoch time
-
# cs_convert_time "Wed May 08 19:49:00 CEST 1985" - * convert current wall clock date/time into Unix Epoch time
-
# cs_convert_time $(LANG=C date)
FILES¶
- /usr/sbin/cs_convert_time
- the program itself.
BUGS¶
Wall clock time needs to be in format LANG=C. Feedback is welcome, please mail to feedback@suse.com
SEE ALSO¶
date(1), time(7), ClusterTools2(7),
cs_dmesg(8)
http://stackoverflow.com/questions/95492/how-do-i-convert-a-date-time-to-epoch-time-aka-unix-time-seconds-since-1970
COPYRIGHT¶
(c) 2015-2019 I.Manyugin, L.Pinne; Germany.
cs_convert_time comes with ABSOLUTELY NO WARRANTY.
For details see the GNU General Public License at
http://www.gnu.org/licenses/gpl.html
10 Jun 2020 |