RE: Determine size of a DateTime::SpanSet?
[email protected] ("Metz, Bobby") Wed, 4 Sep 2013 16:55:35 +0000
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <894B5FDCE373B248B0DF54FFCA67301D1349F86D@USIDCWVEMBX02.corp.global.level3.com> |
I don't use this module, but check the docs on the as_list() method. The config example (copied below) should give you an idea on how to get the # of objects without the addition of any special methods required. my @dt_span = $set->as_list( span => $span ); Bobby From: Andreas Isberg [mailto:[email protected]] Sent: Monday, September 02, 2013 3:33 AM To: [email protected] Subject: Determine size of a DateTime::SpanSet? Hi, I'm looking for a way to find the size of a DateTime::SpanSet, i.e. the number of DateTime:Span objects in it. I'm not looking for a DateTime::Duration object, as the size() method returns. Kind regards, Andreas