2018-05-25 20:10:54 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using System;
|
2018-06-28 18:23:56 +08:00
|
|
|
|
using osu.Game.Graphics;
|
2018-05-25 19:30:29 +08:00
|
|
|
|
|
2018-06-28 18:23:56 +08:00
|
|
|
|
namespace osu.Game.Overlays.Profile.Components
|
2018-05-25 19:30:29 +08:00
|
|
|
|
{
|
|
|
|
|
public class DrawableJoinDate : DrawableDate
|
|
|
|
|
{
|
2018-06-28 18:19:00 +08:00
|
|
|
|
public DrawableJoinDate(DateTimeOffset date)
|
|
|
|
|
: base(date)
|
2018-05-25 19:30:29 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
2018-05-25 20:00:32 +08:00
|
|
|
|
|
2018-06-28 18:19:00 +08:00
|
|
|
|
protected override string Format() => Text = Date.ToUniversalTime().Year < 2008 ? "Here since the beginning" : $"{Date:MMMM yyyy}";
|
2018-05-25 20:00:32 +08:00
|
|
|
|
|
2018-06-28 18:19:00 +08:00
|
|
|
|
public override string TooltipText => $"{Date:MMMM d, yyyy}";
|
2018-05-25 19:30:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|