stripe-go icon indicating copy to clipboard operation
stripe-go copied to clipboard

Parse unix timestamps into times (time.Time)

Open msingleton opened this issue 4 years ago • 2 comments

It'd be nice to parse timestamps into their time.Time during unmarshaling. I'd expect most people will be operating with the values as times (could be wrong) so most people are having to do time.Unix(invoice.PeriodEnd, 0)

Obviously not a big deal, but nice to have!

msingleton avatar Oct 11 '20 23:10 msingleton

Hi @msingleton. I think this makes sense, and we have analogs in other libraries. We have plans to codegen this library in the not-too-distant future which would make a change like this a lot easier to do, so we will punt on this for now but possibly revisit after that lands.

richardm-stripe avatar Oct 13 '20 17:10 richardm-stripe

👍 sounds great

msingleton avatar Oct 13 '20 18:10 msingleton