2019-01-24 17:43:03 +09:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-05-25 14:10:54 +02:00
|
|
|
|
|
|
|
|
|
using System;
|
2018-06-28 19:23:56 +09:00
|
|
|
|
using osu.Game.Graphics;
|
2018-05-25 13:30:29 +02:00
|
|
|
|
|
2018-06-28 19:23:56 +09:00
|
|
|
|
namespace osu.Game.Overlays.Profile.Components
|
2018-05-25 13:30:29 +02:00
|
|
|
|
{
|
|
|
|
|
public class DrawableJoinDate : DrawableDate
|
|
|
|
|
{
|
2018-06-28 19:19:00 +09:00
|
|
|
|
public DrawableJoinDate(DateTimeOffset date)
|
|
|
|
|
: base(date)
|
2018-05-25 13:30:29 +02:00
|
|
|
|
{
|
|
|
|
|
}
|
2018-05-25 14:00:32 +02:00
|
|
|
|
|
2018-06-28 19:19:00 +09:00
|
|
|
|
protected override string Format() => Text = Date.ToUniversalTime().Year < 2008 ? "Here since the beginning" : $"{Date:MMMM yyyy}";
|
2018-05-25 14:00:32 +02:00
|
|
|
|
|
2018-06-28 19:19:00 +09:00
|
|
|
|
public override string TooltipText => $"{Date:MMMM d, yyyy}";
|
2018-05-25 13:30:29 +02:00
|
|
|
|
}
|
|
|
|
|
}
|