コード例 #1
0
            public override SUTime.Temporal Resolve(SUTime.Time t, int flags)
            {
                Partial p = (t != null) ? t.GetJodaTimePartial() : null;

                if (p != null)
                {
                    if (JodaTimeUtils.HasField(p, DateTimeFieldType.Year()))
                    {
                        int         year     = p.Get(DateTimeFieldType.Year());
                        SUTime.Time resolved = ResolveWithYear(year);
                        if (resolved != null)
                        {
                            return(resolved);
                        }
                    }
                }
                return(this);
            }