距离某天还有多久
2014-06-23 13:47
288 查看
using UnityEngine; using System.Collections; using System; public class test : MonoBehaviour { DateTime dt1; DateTime dt2; TimeSpan ts; public GameObject mObj; private UILabel mLab; // Use this for initialization void Start () { dt2 = new DateTime(2014,1,18); mLab = mObj.GetComponent<UILabel>(); } // Update is called once per frame void Update () { dt1 = DateTime.Now; ts = dt1.Subtract(dt2); mLab.text = ts.ToString(); Debug.Log(ts); } }
相关文章推荐
- unity 距离某天还有多久
- unity 距离某天还有多久
- 距离资本寒冬结束还有多久?
- 取得“距离某天还有多少天多少小时”的函数
- 距离某天还有多少天代码
- js指定日期倒计时,距离五一放假还有多久
- 计算距离你的生日还有多久
- 团购的噩梦还有多久
- 张书乐:网红经济还能红多久?或许还有100天
- 到了公司才发现,学的东西和实现用的还有点距离!
- Nutch距离一个商业应用的搜索引擎还有多远收藏
- 计算一个时间距离今天还有多少天
- iOS计算上次日期距离现在多久的代码
- js功能实现的特效--距离新年还有多少天
- SOA距离我们还有多远?
- 如果“中心”离“碎片”还有距离,试试“次中心”?
- 前端小白距离优秀前端工程师还有多远
- 距离某天的时间(php实现)
- .Net 获取一个时间距离当前时间多久了