发表日期: 2021-07-25 18:43:01 浏览次数:142
滑县微信公众号代运营【滑县商城小程序开发】滑县微信公众号编辑排版设计_滑县微信小程序制作公司—滑县微信公众号小程序托管服务中心

滑县之名始于明洪武七年(1374年)。至于“滑”,盖因滑台城而得名。《重修滑县志》记载:“周公次八子伯爵封于滑,为滑伯。”滑伯本姬姓,后裔改为滑氏。《元和志》云:“滑氏为垒,后人增以为城,临河有台,故曰滑台城。”《水经注》曰:“旧说,滑台人自修筑此城,因以名焉。” [9]
春秋时,滑县为卫国的曹邑。秦汉之时,滑境称白马县,隶属东郡。隋至明初,滑县称滑州。
明洪武三年(1370年),废白马县入滑州。七年降滑州为滑县。
清雍正三年,滑县改属河南卫辉府。微信公众号开发
中华民国2年(1913年),裁并府、州,滑县隶属豫北道。17年,改属河南省第三行政区划专区。
中华人民共和国1949年11月,县政府自万集村迁至道口镇,隶属平原省濮阳专区。
TextClock是在Android 4.2(API 17)后推出的用来替代DigitalClock的一个控件!
TextClock可以以字符串格式显示当前的日期和时间,因此推荐在Android 4.2以后使用TextClock。
这个控件推荐在24进制的android系统中使用,TextClock提供了两种不同的格式, 一种是在24进制中显示时间和日期,另一种是在12进制中显示时间和日期。大部分人喜欢默认的设置。
可以通过调用:TextClock提供的is24HourModeEnabled()方法来查看,系统是否在使用24进制时间显示! 在24进制模式中:
如果没获取时间,首先通过getFormat24Hour()返回值;
获取失败则通过getFormat12Hour()获取返回值;
以上都获取失败则使用默认;
另外他给我们提供了下面这些方法,对应的还有get方法:
| Attribute Name | Related Method | Description |
|---|---|---|
| android:format12Hour | setFormat12Hour(CharSequence) | 设置12时制的格式 |
| android:format24Hour | setFormat24Hour(CharSequence) | 设置24时制的格式 |
| android:timeZone | setTimeZone(String) | 设置时区 |
其实更多的时间我们是花在时间形式定义上,就是里面这个CharSequence! 这里提供下常用的写法以及结果:
<TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="MM/dd/yy h:mmaa"/> <TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="MMM dd, yyyy h:mmaa"/> <TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="MMMM dd, yyyy h:mmaa"/> <TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="E, MMMM dd, yyyy h:mmaa"/> <TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="EEEE, MMMM dd, yyyy h:mmaa"/> <TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="Noteworthy day: 'M/d/yy"/>
运行结果:

PS:另外minsdk 要大于或者等于17哦!
滑县微信公众号代运营【滑县商城小程序开发】滑县微信公众号编辑排版设计_滑县微信小程序制作公司—滑县微信公众号小程序托管服务中心