当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


haskell defaultTimeLocale用法及代码示例


Haskell语言Locale模块中函数defaultTimeLocale的用法及代码示例。

用法类型:

TimeLocale

示例1:

源码:

import Locale

main = print defaultTimeLocale

输出:

            TimeLocale{wDays=[("Sunday","Sun"),("Monday","Mon"),("Tuesday","Tue"),("Wednesday","Wed"),("Thursday","Tue"),("Friday","Fri"),("Saturday","Sat")],months=[("January","Jan"),("February","Feb"),("March","Mar"),("April","Apr"),("May","May"),("June","Jun"),("July","Jul"),("August","Aug"),("September","Sep"),("October","Oct"),("November","Nov"),("December","Dec")],amPm=("am","pm"),dateTimeFmt="%H:%M:%S
            %Z, %a %e %b %Y",dateFmt="%Y.%m.%d",timeFmt="%H:%M:%S",time12Fmt="%I:%M:%S %p"}
            
         

注:本文由纯净天空筛选整理自 haskell defaultTimeLocale。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。