尝试一下代码高亮。。成功的话明天写一篇blog

using System;
using System.Collections;
using UnityEngine;

public class Time : MonoBehaviour
{
    // Use this for initialization
    private void Start()
    {
        Debug.Log(System.DateTime.Now);
        Debug.Log(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
        Debug.Log(System.DateTime.Now.Year
            + "-" + System.DateTime.Now.Month
            + "-" + System.DateTime.Now.Day
            + " " + System.DateTime.Now.Hour
            + ":" + System.DateTime.Now.Minute
            + ":" + System.DateTime.Now.Second);
    }

    // Update is called once per frame
    private void Update()
    {
    }
}

posted on 2016-12-08 16:54  Lumious  阅读(596)  评论(4编辑  收藏  举报

导航