obsidian/笔记文件/2.笔记/TimeSpan的用法.md
2025-03-26 00:02:56 +08:00

18 lines
363 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#unity/日常积累
首先TimeSpan是用来表示一个时间段的实例两个时间的差可以构成一个TimeSpan实例。
举例说明:
时间1 = 2019-01-01
时间2 = 获取电脑当前时间;
用时间2减去时间1得到一个TimeSpan 实例;
得到时间差;
![[Pasted image 20220906193647.png]]