Time.Before(Time) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
deprecated
如果此 Time 对象表示的时间发生在给定时间之前,则返回 true。
[Android.Runtime.Register("before", "(Landroid/text/format/Time;)Z", "GetBefore_Landroid_text_format_Time_Handler")]
[System.Obsolete("deprecated")]
public virtual bool Before(Android.Text.Format.Time? that);
[<Android.Runtime.Register("before", "(Landroid/text/format/Time;)Z", "GetBefore_Landroid_text_format_Time_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member Before : Android.Text.Format.Time -> bool
override this.Before : Android.Text.Format.Time -> bool
参数
- that
- Time
要比较的给定 Time 对象
返回
如果此时间小于给定时间,则为 true
- 特性
注解
如果此 Time 对象表示的时间发生在给定时间之前,则返回 true。
等效于 Time.compare(this, that) < 0。 有关详细信息,请参阅#compare(Time, Time)。
Java文档android.text.format.Time.before(android.text.format.Time)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。