PMDATE(1)

πŸ“¦
version 7.2.2 Β· 3 versions
, in arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– PMDATE(1) πŸ’–

okay bestie, this is pmdate from the General Commands Manual β€” she's a tiny icon from the Performance Co-Pilot crew and she's here to tell you what time it is (or what time it was, or what time it's gonna be). πŸ•°οΈβœ¨


✨ NAME ✨

pmdate β€” display an offset date πŸ’…


🌸 SYNOPSIS 🌸

pmdate [offset ...]  format

πŸ¦‹ DESCRIPTION πŸ¦‹

So the whole vibe of pmdate is: it displays the current date and/or time, and you can optionally throw an offset at it. That's it. That's the girl. πŸŽ€

An offset is specified with a leading sign (+ or -), followed by an integer value, followed by one of these little "scale" specifiers β€” think of them as the units, the flavor packet, the je ne sais quoi:

  • S β€” seconds ⏱️
  • M β€” minutes
  • H β€” hours
  • d β€” days
  • m β€” months
  • y β€” years

The output format follows the exact same rules as date(1) and strftime(3) β€” so if you already know how to speak strftime, you're fluent here, no cap. πŸ“†

For example, the following will display the date a week ago as DDMMYYYY:

pmdate -7d %d%m%Y
⚠️ heads up bestie: the scale specifiers are case-sensitive. M is minutes, m is months. Do not mix those up or your timeline gets messy. πŸ’€

🌈 PCP ENVIRONMENT 🌈

Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. πŸ‘‘

On each installation, the file /etc/pcp.conf contains the local values for these variables. πŸ“

The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). πŸ”§


πŸ‘‘ SEE ALSO πŸ‘‘

date(1), strftime(3), pcp.conf(5) and pcp.env(5). go read them, they're giving lore. πŸ“šβœ¨


mwah πŸ’‹ that's the whole page, bestie β€” brought to you by Performance Co-Pilot (PCP), living under the PMDATE(1) glow-up, general commands manual energy, iconic as always. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from