Prelude> import Data.Time.Clock.POSIX (getPOSIXTime)
Prelude Data.Time.Clock.POSIX> ptime <- getPOSIXTime
Prelude Data.Time.Clock.POSIX> ptime
1360059876.245525s
Prelude Data.Time.Clock.POSIX> :t ptime
ptime :: Data.Time.Clock.POSIX.POSIXTime
Prelude Data.Time.Clock.POSIX>
我想将 ptime 转换为字符串类型,怎么做?