Terraria.ModLoader.UI.UIModDownloadItem.DrawTimeText C# (CSharp) Method

DrawTimeText() private method

private DrawTimeText ( SpriteBatch spriteBatch, Vector2 drawPos ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
drawPos Vector2
return void
        private void DrawTimeText(SpriteBatch spriteBatch, Vector2 drawPos)
        {
            if (timeStamp == "0000-00-00 00:00:00")
            {
                return;
            }
            try
            {
                DateTime MyDateTime = DateTime.Parse(timeStamp);
                string text = TimeHelper.HumanTimeSpanString(MyDateTime);
                Utils.DrawBorderString(spriteBatch, "Updated: " + text, drawPos, Color.White, 1f, 0f, 0f, -1);
            }
            catch
            {
                return;
            }
        }