DATE(1plan9)

✨ DATE(1plan9) ✨

okay bestie, welcome to the Plan 9 manual, section 1 πŸ’… this is the page for date and it's literally the whole vibe of "what time is it" but make it Unix. no cap. πŸ•°οΈ


🌸 NAME 🌸

date β€” date and time, babe. that's it. that's the whole job. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

date [ option ] [ seconds ]

πŸ’– DESCRIPTION πŸ’–

so like, date prints the date. and it prints it in this format, exactly:

Tue Aug 16 17:03:52 CDT 1977

iconic format tbh. no notes. ✨

the options are:

  • -u β€” report Greenwich Mean Time (GMT) instead of your local time. traveling era 🌍
  • -n β€” report the date as the number of seconds since the epoch, which is 00:00:00 GMT, January 1, 1970. that's the big bang of Unix time fr fr πŸ’₯

the conversion from Greenwich Mean Time to local time depends on the $timezone environment variable β€” go read ctime(3) if you want the tea on that one πŸ‘€

and if the optional argument seconds is there? it gets used as the time to convert instead of the real time. so you can time travel (kind of) 🧚

not me using date just to feel something 😭

πŸŽ€ SOURCE πŸŽ€


---

okay that's the page 🫢 this was the <rainbow>DATE(1plan9)</rainbow> manual page β€” section 1, Plan 9, and the source lives at `/src/cmd/date.c`. slay, go check the time. β­πŸ’œ
πŸ“¦ where this page comes from