如何清除TimeSelector值? [英] How to Clear TimeSelector Value?

查看:60
本文介绍了如何清除TimeSelector值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何清除时间间隔"中的TimeSelector值?没有默认时间"(可能是大爆炸"或旧约的第一行:-)这样的概念,因此不应有重置"时间的概念.如果由于重置"而需要当前时间,为什么不使用System.DateTime.Now(System.DateTime的静态属性)并将其显式设置呢?

—SA


通过搜索google或任何搜索引擎网站.


How to Clear TimeSelector Value?in Clear Buttion..

解决方案

Based on the discussion in the comments to the question: when it comes to time, there is no such concept as "default time" (may be Big Bang or first lines of Old Testament :-)), so there should not be a concept of time "reset". If current time is needed as a result of "reset", why not getting this time using System.DateTime.Now (a static property of System.DateTime) and setting it explicitly?

—SA


By searching google or any search engine site.


这篇关于如何清除TimeSelector值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆