DBIx::Class::Sims::Type::Date - Additional Sims types for DBIx::Class::Sims
These are additional types added to DBIx::Class::Sims which handle generation of dates.
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.
N will never be zero
Rob Kinyon <rob.kinyon@gmail.com>
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:
You forgot a '=back' before '=head2'
To install DBIx::Class::Sims::Type::Date, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::Sims::Type::Date
CPAN shell
perl -MCPAN -e shell install DBIx::Class::Sims::Type::Date
For more information on module installation, please visit the detailed CPAN module installation guide.