File: TODO

package info (click to toggle)
libdatetime-incomplete-perl 0.08-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188 kB
  • sloc: perl: 1,470; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
TODO file for DateTime::Incomplete

- Add new methods from DateTime

- truncate( to => 'week' )

- test Storable hooks

    perl -Ilib -MStorable -MDateTime::Incomplete -MData::Dumper -e '$dt=DateTime->new(year=>1970);$dti=DateTime::Incomplete->new( year => 2003, base=>$dt, time_zone => "America/Chicago" );$freeze = Storable::nfreeze( $dti );print "$freeze\n"; '

- more tests for next/previous/closest with year and nanosecond
- use $FIELDS[0] instead of 'year'; $FIELDS[-2] instead of nanosecond
- change @FIELDS to a "class" constant (instead of "package")

- locale and time_zone tests:
  mixing string and object time_zones;
  time_zone-only and locale-only DT::I objects.

IDEAS

* 'undef_char' could be configurable.

* add_datetime

Just like to_datetime, but adds the field values.

* compare

or is that simply not defined?

* join( $dti )

join the "defined" keys of two DT::Incomplete objects

* set_week

$dti->set( week => 10 )

* is_incomplete/is_complete

How do we know it is complete?