| Anonymous | Login | Signup for a new account | 2013-05-23 14:56 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0003849 | OCaml | OCaml general | public | 2005-11-08 15:15 | 2012-10-29 13:28 | ||||||
| Reporter | administrator | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | |||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0003849: strftime/strptime and asctime | ||||||||||
| Description | Full_Name: Joshua Smith Version: 3.09 OS: Linux Submission from: dsl092-167-152.wdc2.dsl.speakeasy.net (66.92.167.152) I would like to have strftime/strptime and asctime added into the Unix module. This functionality exists in non-standard modules but it would be nice to have a more complete Unix module. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Relationships |
|||||||||||
|
|||||||||||
Notes |
|
|
(0000276) administrator (administrator) 2005-11-16 17:18 |
see also PR#3851 |
|
(0006087) newacct (reporter) 2011-08-10 08:35 |
Yeah even the C90 standard library has asctime() and ctime(); why doesn't OCaml? Although you can convert between time and struct tm types, there is no way to get any of those into a string to display in OCaml, which is really silly. |
|
(0008354) warwick (reporter) 2012-10-29 13:28 |
It'd be good to even have a basic time-to-string function such as asctime (though strftime/strptime would be ideal). These functions would be a handy addition to the Unix module. Alternatively it could be good to add to the Printf module so that it can display floating point numbers (seconds since 1 Jan 1970) as date/times. This would be similar to Java, and quite useful: %tY => year %tm => month %td => day %tF => ISO 8601 date etc |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2005-11-18 10:13 | administrator | New Issue | |
| 2005-11-29 13:11 | doligez | Relationship added | parent of 0003851 |
| 2011-08-10 08:35 | newacct | Note Added: 0006087 | |
| 2012-10-29 13:28 | warwick | Note Added: 0008354 | |
| Copyright © 2000 - 2011 MantisBT Group |