Egon function will not handle Leap year properly comparing YearDay() You must firstly compare month then day of month
On Wednesday, July 16, 2014 at 1:59:13 AM UTC+3, dashaus wrote: > > Thanks all!! > Finally, I get the function of Egon. > > Carlos, yes, i'm practice with golang. I need study more it. Thanks! > > Best, > Emilio > > El martes, 15 de julio de 2014 21:36:16 UTC+1, Carlos Castillo escribió: >> >> Go has a time package: http://golang.org/pkg/time/ >> >> Here's a most likely un-useful example: >> http://play.golang.org/p/tMvS17UqVg >> >> How you want to determine "age" will guide how you use the time package >> to compute the answer. Egon's code is what people generally think of as >> "age" w.r.t. birthdays. >> >> Also, this sounds like a homework question. >> >> On Tuesday, July 15, 2014 12:27:06 PM UTC-7, Emilio García-Pumarino >> Álvarez wrote: >>> >>> Hi! >>> I need know the age from birth date. Anyone know any library for do it? >>> If not there are library for do it, how I can calculate it? >>> >>> Thanks! >>> >>> Emilio >>> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.