1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 10:37:46 +08:00

21 lines
616 B
C#
Raw Normal View History

2018-05-25 14:10:54 +02: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 19:23:56 +09:00
using osu.Game.Graphics;
2018-06-28 19:23:56 +09:00
namespace osu.Game.Overlays.Profile.Components
{
public class DrawableJoinDate : DrawableDate
{
public DrawableJoinDate(DateTimeOffset date)
: base(date)
{
}
protected override string Format() => Text = Date.ToUniversalTime().Year < 2008 ? "Here since the beginning" : $"{Date:MMMM yyyy}";
public override string TooltipText => $"{Date:MMMM d, yyyy}";
}
}