Form::...atetime(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’– Form::...atetime(3pm) πŸ’–

okay so bestie, welcome to the manual page for Form::...atetime (perl doc, 3pm section, user contributed, we love that for us). sit down, grab a strawberry, and let's get into it πŸ“βœ¨


🌸 NAME 🌸

Embperl::Form::Control::price β€” a price input control with an optional unit inside an Embperl Form

not me clocking that the NAME says price on a datetime page 😭 the original said it, so I said it, we don't make the rules here. moving on periodt πŸ’…

✨ SYNOPSIS ✨

  {
  type => 'price',
  text => 'blabla',
  name => 'foo',
  unit => 'sec',
  }

πŸ¦‹ DESCRIPTION πŸ¦‹

So this thing exists to create a datetime input control inside an Embperl Form. It will format a number as a date/time. πŸ‘‘

If you wanna know how to specify parameters, go look at Embperl::Form β€” that's the main character, this page is the supporting cast.

The datetime format expected in %fdat is literally this, exactly this, no cap:

YYYYMMTTHHMMSSZ
lowkey note the TT in there, that's what the original says, so that's what you get πŸ™ˆ

πŸŽ€ PARAMETER πŸŽ€

type

Needs to be 'datetime'. Like, it needs to be. That's the vibe check and you must pass it.

name

Specifies the name of the control. that's the whole job bestie 🫢

text

Will be used as the label for the numeric input control.

size

Gives the size in characters. Default is 10. iconic default, honestly.

notime

does not display time. simple as. ✨

dynamic

allows the following values to be entered:

d, m, y, d-N, d+N, m-N, m+N, y-N, y+N

N is any number. These values are simply passed through and need to be processed somewhere else β€” so don't come for this control asking where your math went, it does not do the math, it just hands it over πŸ’€


🌈 Author 🌈

G. Richter (richter at embperl dot org)


πŸ’œ See Also πŸ’œ


that's the whole page, you ate it, go build something cute πŸ§šπŸ’–

signing off with the receipts: this is perl v5.34.0, dated 2022-02-06, and the doc you just read is Form::...atetime(3pm). bye bestie πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from