cs_convert_time(8)
β¨ cs_convert_time(8) β¨
okay so bestie, we're in the ClusterTools2 house today and the star of the show is cs_convert_time β she's an 8th-section (admin/privileged) command and she does exactly one thing but she does it iconically. π
πΈ NAME πΈ
cs_convert_time β literally just converts a date/time string between Unix Epoch and wall clock, no cap π
π¦ SYNOPSIS π¦
cs_convert_time <date/time string>
β DESCRIPTION β
So here's the vibe: cs_convert_time converts date/time strings between Unix Epoch and wall clock π₯
And the way it works? The script is lowkey a genius β it tries to figure out the desired direction from the format of the given argument π§ She reads your string, she clocks the format, and she knows which way you're going. main character energy fr fr π
π EXIT STATUS π
0β successful program execution. we slayed. ate and left no crumbs π>0β usage, syntax or execution errors [insert sad trombone] π
π 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 β¨ (yes bestie, live and current, obsessΓ©)
# cs_convert_time $(LANG=C date)
π FILES π
/usr/sbin/cs_convert_timeβ the program itself. that's her. that's the girl π«Ά
π BUGS π
wall clock time needs to be in formatLANG=C. that's the rule, ngl. if you don't give herLANG=Cshe's gonna be confused and honestly same π
Feedback is welcome, please mail to feedback@suse.com β she reads her inbox, she's not ghosting you π
π₯ SEE ALSO π₯
date(1), time(7), ClusterTools2(7), cs_dmesg(8)
and the sacred text itself, iykyk:
π COPYRIGHT π
(c) 2015-2019 I.Manyugin, L.Pinne; Germany.
cs_convert_time comes with ABSOLUTELY NO WARRANTY β like, none, zero, nada. For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html π
πΈ okay that's the whole page, bestie! shoutout to ClusterTools2, dated 10 Jun 2020 β she's been serving epoch-to-wall-clock realness since day one and she's still that girl π β¨π
π¦ where this page comes from
- opensuse-leap 16.0: ClusterTools2 3.1.3-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms