{
    "mode": "perldoc",
    "parameter": "Plucene::Document::DateSerializer",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3ADateSerializer/json",
    "generated": "2026-07-05T13:40:29Z",
    "synopsis": "use Plucene::Document::DateSerializer\nmy $field = Plucene::Document::Field->Text(\ndate => freezedate(Time::Piece $t)\n);\n$doc->add($field);",
    "sections": {
        "NAME": {
            "content": "Plucene::Document::DateSerializer - Utility functions for dealing with dates\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Plucene::Document::DateSerializer\nmy $field = Plucene::Document::Field->Text(\ndate => freezedate(Time::Piece $t)\n);\n$doc->add($field);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Dates and times in Plucene should be serialized using the \"freezedate\" function so that the\nPlucene::Search::DateFilter can filter on them during future searches.\n",
            "subsections": []
        },
        "SUBROUTINES": {
            "content": "freezedate\nmy $string = freezedate(Time::Piece $t)\n\nThis routine, exported by default, turns a \"Time::Piece\" object into a string in a format\nexpected by both Plucene and Lucene.\n\nthawdate\nmy Time::Piece $t = Plucene::Document::DateSerializer::thawdate($string)\n\nThis routine is not exported, and is not used by the Plucene core. It is useful for debugging\ndates, and simply reverses the \"freezedate\" operation.\n",
            "subsections": []
        }
    },
    "summary": "Plucene::Document::DateSerializer - Utility functions for dealing with dates",
    "flags": [],
    "examples": [],
    "see_also": []
}