LJ::alldateparts_to_hash

LJ::alldateparts_to_hash — Given a date/time format from MySQL, breaks it into a hash.

Use

LJ::alldateparts_to_hash(alldatepart);

Arguments

  • alldatepart. The output of the MySQL function DATE_FORMAT(sometime, "%a %W %b %M %y %Y %c %m %e %d %D %p %i %l %h %k %H")

Info

This is used by S1.

Source:

cgi-bin/ljviews.pl

Returns:

Hash (whole, not reference), with keys: dayshort, daylong, monshort, monlong, yy, yyyy, m, mm, d, dd, dth, ap, AP, ampm, AMPM, min, 12h, 12hh, 24h, 24hh