You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
459 B
23 lines
459 B
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class GetTime : MonoBehaviour
|
|
{
|
|
public Text[] text;
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
DateTime NowTime = DateTime.Now.ToLocalTime();
|
|
text[0].text = NowTime.ToString("yyyy/MM/dd");
|
|
text[1].text = NowTime.ToString("hh : mm : ss");
|
|
}
|
|
}
|