PLCTIME(3plplot)
π PLCTIME(3plplot) β the PLplot API, bestie edition π
okay so real talk, this is a page from the PLplot API manual and it's about plctime. sit down, grab a boba, we're gonna make continuous time out of broken-down time and it's gonna be iconic β¨
πΈ NAME πΈ
plctime β calculate continuous time from broken-down time for the current stream. that's the whole vibe. that's the assignment. π
π¦ SYNOPSIS π¦
plctime(year, month, day, hour, min, sec, ctime)
β¨ DESCRIPTION β¨
so basically, plctime calculates continuous time, ctime, from broken-down time for the current stream. the broken-down time is specified by these parameters: year, month, day, hour, min, and sec. it's literally the inverse of plbtime(3plplot) β they're giving opposites-attract energy π«Ά
the PLplot definition of broken-down time is a calendar time that completely ignores all time zone offsets, meaning it is the user's responsibility to apply those offsets (if so desired) before using the PLplot time API. no cap, no automatic timezone math, that's on you bestie π
by default, broken-down time is defined using the proleptic Gregorian calendar without the insertion of leap seconds, and continuous time is defined as the number of seconds since the Unix epoch of 1970-01-01T00:00:00Z. iconic default, honestly. but other definitions of broken-down and continuous time are possible β see plconfigtime(3plplot), which specifies that transformation for the current stream. so you can change the vibe, you just gotta say so π
Redacted form: General: plctime(year, month, day, hour, min, sec, ctime)
this function is used in example 29 β go look at it, it ate π
π ARGUMENTS π
year(PLINT(3plplot), input) β the input year.month(PLINT(3plplot), input) β the input month, in range from0(January) to11(December). yes0-indexed, yes that's just how it is πday(PLINT(3plplot), input) β the input day, in range from1to31.hour(PLINT(3plplot), input) β the input hour, in range from0to23.min(PLINT(3plplot), input) β the input minute, in range from0to59.sec(PLFLT(3plplot), input) β the input second, in range from0.to60.β notice she's aPLFLT, not an int, so fractional seconds are very much welcome πctime(PLFLT_NC_SCALAR(3plplot), output) β the returned value of the continuous time calculated from the broken-down time specified by the previous parameters. that's your result, your main character output, your β¨momentβ¨
π AUTHORS π
many developers (who are credited at http://plplot.sourceforge.net/credits.php) have contributed to PLplot over its long history. legends, every single one π«Άπ
π₯ SEE ALSO π₯
- PLplot documentation at
http://plplot.sourceforge.net/documentation.phpβ go read it, it's giving resourceful π
and that's the whole page bestie!! this was the PLplot API PLCTIME(3plplot) situation, sourced and dated August, 2026 β mwah, drink water, apply your timezone offsets manually, and stan plbtime(3plplot)'s inverse πβ¨π
π¦ where this page comes from
- ubuntu stonking: plplot-doc 5.15.0+dfsg3-4 Β· LGPL-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