GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLUCENE::DOCUMENT::DATESERIALIZER (3)

.ds Aq ’

NAME

Plucene::Document::DateSerializer - Utility functions for dealing with dates

CONTENTS

SYNOPSIS



        use Plucene::Document::DateSerializer
        my $field = Plucene::Document::Field->Text(
                date => freeze_date(Time::Piece $t)
        );
        $doc->add($field);



DESCRIPTION

Dates and times in Plucene should be serialized using the freeze_date function so that the Plucene::Search::DateFilter can filter on them during future searches.

SUBROUTINES

    freeze_date



        my $string = freeze_date(Time::Piece $t)



This routine, exported by default, turns a Time::Piece object into a string in a format expected by both Plucene and Lucene.

    thaw_date



        my Time::Piece $t = Plucene::Document::DateSerializer::thaw_date($string)



This routine is not exported, and is not used by the Plucene core. It is useful for debugging dates, and simply reverses the freeze_date operation.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLUCENE::DOCUMENT::DATESERIALIZER (3) 2005-09-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.