- 浏览: 156441 次
- 性别:
- 来自: 保山腾冲
文章分类
最新评论
-
TNTDoctor:
谢谢,标记一下,有空来看看
(转)Haskell与范畴论 -
t173625478:
文章一般般,不够透彻,以至于误解了很多函数式特性的由来和作用。 ...
(转)函数式编程另类指南 -
liyiwen007:
学习了!
很受益!
用AGG实现高质量图形输出(二) -
hqs7636:
感谢!!!!!!!
《learn to tango with D》译文 -
rocex:
多谢,刚好用到。
《learn to tango with D》译文
tango.text.convert.DateTime
License:
BSD style: see license.txt
Version:
Jan 2005: initial release Mar 2009: extracted from locale, and converted to a struct
Author:
John Chapman, Kris
在一个地区设定特性(locale-specific )方式中,支持日期/时间值的格式化。看DateTimeLocale.format()描述的如何执行格式化(下面)。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
"t" = 7:04 "T" = 7:04:02 PM "d" = 3/30/2009 "D" = Monday, March 30, 2009 "f" = Monday, March 30, 2009 7:04 PM "F" = Monday, March 30, 2009 7:04:02 PM "g" = 3/30/2009 7:04 PM "G" = 3/30/2009 7:04:02 PM "y" "Y" = March, 2009 "r" "R" = Mon, 30 Mar 2009 19:04:02 GMT "s" = 2009-03-30T19:04:02 "u" = 2009-03-30 19:04:02Z |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
"t" = "h:mm" "T" = "h:mm:ss tt" "d" = "M/d/yyyy" "D" = "dddd, MMMM d, yyyy" "f" = "dddd, MMMM d, yyyy h:mm tt" "F" = "dddd, MMMM d, yyyy h:mm:ss tt" "g" = "M/d/yyyy h:mm tt" "G" = "M/d/yyyy h:mm:ss tt" "y" "Y" = "MMMM, yyyy" "r" "R" = "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'" "s" = "yyyy'-'MM'-'dd'T'HH':'mm':'ss" "u" = "yyyy'-'MM'-'dd' 'HH':'mm':'ss'Z'" |
1
|
Monday, 30 Mar 2009 19:04:02 -08:00
|
和布局(Stdout等)一起使用这些格式指示符是很简明的。例如要格式化一个整数,看起来像这样:
1 2 3 |
Stdout.formatln ("{:u}", 5); Stdout.formatln ("{:b}", 5); Stdout.formatln ("{:x}", 5); |
格式化日期/时间值是类似的,格式指示符在冒号后给出:
1 2 3 |
Stdout.formatln ("{:t}", Clock.now); Stdout.formatln ("{:D}", Clock.now); Stdout.formatln ("{:dddd, dd MMMM yyyy HH:mm}", Clock.now); |
发表评论
-
tango.text.convert.Utf 翻译
2009-07-23 16:59 794tango.text.convert.Utf(r4809 ... -
tango.io.Buffer 翻译
2009-07-23 13:58 1030(提交后发觉内容不在了 ... -
tango.io.device.Conduit 翻译
2009-07-23 13:56 793tango.io.device.Conduit (r48 ... -
tango.core.Exception 翻译
2009-07-20 19:29 852tango.core.Exception(r4796) ... -
tango.io.device.File 翻译
2009-07-20 19:27 1059tango.io.device.File (r4796) ... -
tango.io.Console 翻译
2009-07-19 14:03 928tango.io.Console (r4795) Li ... -
tango.io.digest.Digest 翻译
2009-07-19 14:00 852tango.io.digest.Digest(r4795 ... -
tango.io.digest.Crc32 翻译
2009-07-19 13:59 819tango.io.digest.Crc32 (r4795 ... -
tango.io.UnicodeFile 翻译
2009-07-19 13:58 757tango.io.UnicodeFile (r4795) ... -
tango.text.Search 翻译
2009-07-18 20:28 964tango.text.Search License: ... -
tango.sys.win32.CodePage 翻译
2009-07-18 20:26 873tango.sys.win32.CodePage(r47 ... -
tango.sys.Environment 翻译
2009-07-18 20:25 848tango.sys.Environment Lice ... -
tango.text.convert.Integer 翻译
2009-07-18 20:24 874tango.text.convert.Integer(r ... -
tango.text.convert.TimeStamp 翻译
2009-07-18 20:19 886tango.text.convert.TimeStamp ... -
tango.text.Ascii 翻译
2009-07-17 23:12 891tango.text.Ascii(r4792) Li ... -
tango.text.convert.Layout 翻译
2009-07-17 23:10 944tango.text.convert.Layout ... -
tango.io.File 翻译
2009-07-17 21:35 757tango.io.File License: BS ... -
tango.text.Util 翻译
2009-07-17 11:50 935tango.text.Util(r4774) Lice ... -
tango.text.Text 翻译
2009-07-16 10:20 942tango.text.Text(r4774) Lice ... -
tango.io.FileScan 翻译
2009-07-11 23:20 824tango.io.FileScan (r4774) ...
相关推荐
探戈标签Clojure 库,用于根据来自 tango.info 网站的数据自动标记探戈歌曲。执照版权所有 :copyright: 2014 Bruno Alfirević 根据 Eclipse 公共许可证分发 1.0 版或(由您选择)任何更高版本。
Windows10搭建TANGO环境图文教程
谈客视频电话 Tango v3.13.128111 更新时间:2015-01-14 版本:3.13.128111 软件语言:多语言 软件类别:网络语音 软件大小:26.18 MB 适用固件:2.1及更高固件 内置广告:没有广告 适用平台:Android Tango为您...
详细介绍了Tango Control System 的使用和搭建。 分别在不同设备上搭建,顺便详细展示用途。
Tango视频电话3.13.127894 Tango Video Calls 大小:26.18MB 更新时间:2015-01-12 Tango为您带来免费的高品质视频通话,在3G和Wi-Fi网络上都运行如飞!全世界数百万用户都在使用妙趣横生又简单易用的Tango视频...
Apress.Learn.to.Tango.with.D.Jan.2008.pdf 学习D语言的好书,通过学习D语言的类库Tango来运用这门语言,你会发现他是多么的精彩
tango, 微型&可以插入网络框架 Tango 软件包探戈是一个微型&可以插入的网页框架。当前版本:v0.5.0 版本的历史记录。正在启动要安装 Tango:go get github.com/lunny/tango
身份验证 authz是的授权中间件,它基于 。 安装 ...简单的例子 package main import ( ... tg := tango .... HandlerFunc ( func ( ctx * tango. Context ) { sess := sessions . Session ( ctx . Req ()
资源来自pypi官网。 资源全名:django-tango-0.3.1.tar.gz
如果要在乳胶文档中使用这些探戈颜色,请将tango.sty放在某个可以找到乳胶的地方。 例如,在texmf目录中。 Python 您有两种使用颜色的方法。 如果只需要HTML模型,则可以导入TANGO_HTML_COLORS ,这是探戈颜色的...
agent.sources.redisSource.type = com.tango.logstash.flume.redis.source.RedisSource agent.sources.redisSource.host = localhost agent.sources.redisSource.key = logstash agent.sources.redisSource.batch_...
资源分类:Python库 所属语言:Python 资源全名:tango-comments-0.4.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
现在,这意味着基本上所有用户模块(tango.math.BigNum除外,别名为std.bigint,直到另行通知)和大多数tango.core模块都已移植。 doc / examples文件夹中的示例也应该起作用。 我在Linux上进行移植,因此这是经过...
D语言教程Apress.Learn.to.Tango.with.D.Jan.2008.pdf
Tango Tango 是一个微内核易扩展的Go语言Web框架,他兼有Beego的效率和Martini的中间件设计。 最近更新 ... tango.JSON } func (Action) Get() interface{} { if true { return map[string]string{
将探戈存储git clone git@github.com:kwight/tango.git到您的wp-content/themes/文件夹中: git clone git@github.com:kwight/tango.git cd进入新的Tango主题,然后运行npm install 。 运行npm run build来创建...
TangoSDK_Eisa_Unity5.unitypackage
语言:English,中文 (简体) 自动提取bugly页面的日志数据,并以可读性更高的UI形式展现 自动提取bugly页面的日志数据,并自动弹窗显示;支持多种显示日志方式:1. 自动弹窗提醒;可通过设置,取消自动弹窗提醒(默认...
tango 古老的电路板设计软件,包含sch pcb 打印等等
Tango SDK---The latest version of the Unity SDK is Ikariotikos (Version 1.54, June 2017).