NAME

DBIx::Class::Sims::Type::Date - Additional Sims types for DBIx::Class::Sims

PURPOSE

These are additional types added to DBIx::Class::Sims which handle generation of dates.

TYPES

The following sim types are pre-defined:

  • time

    This generates a time correctly formatted for the RDBMS being used.

  • date / timestamp

    This generates a date or timestamp correctly formatted for the RDBMS being used. By default, the date or timestamp will be after 1900-01-01 and before 2100-01-01.

  • date_in_past / timestamp_in_past

    This generates a date or timestamp correctly formatted for the RDBMS being used. This will create a date or timestamp after 1900-01-01 and before now.

  • date_in_past_N_years / timestamp_in_past_N_years

    This generates a date or timestamp correctly formatted for the RDBMS being used. This will create a date or timestamp in the previous N years before now.

  • date_in_future / timestamp_in_future

    This generates a date or timestamp correctly formatted for the RDBMS being used. This will create a date or timestamp after now and before 2100-01-01.

  • date_in_next_N_years / timestamp_in_next_N_years

    This generates a date or timestamp correctly formatted for the RDBMS being used. This will create a date or timestamp in the next N years after now.

ASSUMPTIONS

  • N will never be zero

AUTHOR

Rob Kinyon <rob.kinyon@gmail.com>

LICENSE

Copyright (c) 2017 Rob Kinyon. All Rights Reserved. This is free software, you may use it and distribute it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 133:

You forgot a '=back' before '=head2'