# TimeArray -\> {Regular,Irregular}TimeArray

**URL:** <https://discourse.julialang.org/t/timearray-regular-irregular-timearray/3919>\
**Category:** Statistics\
**Created:** [May 25, 2017, 6:50am UTC](https://discourse.julialang.org/t/timearray-regular-irregular-timearray/3919 "2017-05-25T06:50:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Post date:** [May 25, 2017, 6:50am UTC](https://discourse.julialang.org/t/timearray-regular-irregular-timearray/3919/1 "2017-05-25T06:50:05Z")

</div>

TimeArray is the type underlying JuliaStats/TimeSeries.  
I need a slightly finer distinction and the ability to dispatch over each, RegularTimeArray (where deltaTime is constant) and IrregularTimeArray (where deltaTime is not always the same). I considered using the .meta field to hold Val{:Regular} or Val{:Irregular}. But others use .meta and I do not want to step on that.

What is the most direct, concise and free-of-extra-array-copying way to have each as its own struct and use the machinery of TimeArray for initializing? Can I avoid wrapping TimeArray?
