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
Oryx::Value::DateTime(3) User Contributed Perl Documentation Oryx::Value::DateTime(3)

Oryx::Value::DateTime - Values storing dates and times

  package CMS::Event;

  use base qw( Oryx::Class );

  use Class::Date qw( now );

  our $schema = {
      attributes => [ {
          name => 'summary',
          type => 'String',
      }, {
          name => 'when',
          type => 'DateTime',
      } ],
  };

  $x = CMS::Event->create({
      summary => 'Meet with Joe',
      when    => now,
  });

This type stores dates and times by using Class::Date objects.

This value will check to see that the value stored is a proper date and will inflate and deflate the date using Class::Date to be stored in a "DateTime" primitive type field.

Class::Date, Oryx::Value

Richard Hundt <richard NO SPAM AT protea-systems.com>

This library is free software and may be used under the same terms as Perl itself.
2006-02-17 perl v5.32.1

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

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