summary refs log tree commit diff
path: root/src/libstd/time.rs
AgeCommit message (Collapse)AuthorLines
2012-12-17Switch from serialization to std::serialize. (snapshot)Erick Tryzelaar-4/+4
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-28core: Convert some records to structsBrian Anderson-15/+17
2012-11-28Merge remote-tracking branch 'erickt/time'Brian Anderson-110/+154
Conflicts: src/libstd/time.rs
2012-11-28Register snapshotsBrian Anderson-39/+0
2012-11-26libstd: turn time::Tm and time::Timespec into structsErick Tryzelaar-194/+169
This avoids #4044 by not using the enum wrapper, and turning Tm_ directly into a struct. Along the way it modernizes the codebase to eliminate no-implicit-copies warnings.
2012-11-26Made Tm_ a struct instead of a record and added serialization support to Tm ↵Jesse Jones-17/+78
and Tm_. Not entirely clear what the best way to do this is. Right now we persist the entire struct which seems to be both portable and exactly round-trippable.
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+39
2012-11-18Made the time to string functions pure as well as empty_tm.Jesse Jones-10/+14
This closes #3919.
2012-11-18Replace TmMut with inherited mutabilityJesse Jones-30/+16
2012-11-18Moved strptime and strftime into private helper functions.Jesse Jones-76/+84
Makes the public API much easier to see and prepares the way for making them pure.
2012-10-12Replace several common macros of the form #m[...] with m!(...)Kevin Cantu-2/+1
This commit replaces nearly all remaining uses of #fmt, #debug, #error, and #info, and fixes some error messages...
2012-10-05Finally removing all uses of by-mut-refTim Chevalier-29/+4
The code for the mode itself is still there.
2012-10-05Remove uses of mutable ref mode.Tim Chevalier-1/+29
It's still in the compiler right now, but warned about
2012-10-05Revert "wip"Tim Chevalier-29/+1
This reverts commit ca49fd402af8e7bf613c43e996274b5a017958d2.
2012-10-05wipTim Chevalier-1/+29
2012-10-04Remove by-copy mode from std, mostlyTim Chevalier-1/+1
One instance remains in net_tcp due to a foreign fn. Lots of instances remain in serialization.rs, but IIRC that is being removed. I had to do unholy things to task-perf-word-count-generic to get it to compile after demoding pipes. I may well have messed up its performance, but it passes.
2012-10-03Remove uses of + mode from libstdTim Chevalier-2/+2
More or less the same as my analogous commit for libcore. Had to remove the forbid(deprecated_modes) pragma from some files -- will restore it after the snapshot.
2012-09-28De-export std::{time, prettyprint{,2}, arena}. Part of #3583.Graydon Hoare-26/+12
2012-09-28Long linesBrian Anderson-5/+5
2012-09-28std: Eliminate deprecated patternsBrian Anderson-2/+1
2012-09-26Refactoring ReaderUtil trait, combining it with the traitless impl on Reader.Eric Holk-1/+1
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-36/+0
2012-09-21libcore: De-mode strPatrick Walton-1/+1
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+2
#[legacy_exports];
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+36
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-8/+16
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-16/+8
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-8/+16
2012-09-10Convert 'import' to 'use'. Remove 'import' keyword.Brian Anderson-1/+0
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-3/+4
2012-09-04libstd: "import" -> "use"Patrick Walton-4/+4
2012-09-01Remove the 'to' keywordBrian Anderson-1/+1
2012-08-30libstd: More test fixesPatrick Walton-0/+23
2012-08-29libstd: Fix some build breakagePatrick Walton-2/+2
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-0/+7
2012-08-29Camel case more std typesBrian Anderson-27/+27
2012-08-27Convert core::result to camel caseBrian Anderson-66/+66
2012-08-26Camel case the option typeBrian Anderson-50/+50
2012-08-24Remove deprecated modes from libstd/time.rsKevin Cantu-17/+20
I've changed the unique string arguments to slices, and internally use references to tm enums. These changes are self-contained and so likely don't step on any of @graydon's feet for a change!
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-34/+34
2012-08-15Expunge match checksTim Chevalier-9/+16
2012-08-14Convert more core types to camel caseBrian Anderson-1/+1
2012-08-11std: Update timespec comments to say "nanoseconds"Chris Peterson-2/+2
2012-08-08Convert impls to new syntaxBrian Anderson-3/+3
2012-08-07syntax: Make match arm parsing more restrictive againBrian Anderson-16/+16
Require comma separators for all expression types except the plain block
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-35/+39
2012-08-05Switch alts to use arrowsBrian Anderson-237/+209
2012-08-01Convert ret to returnBrian Anderson-6/+6
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-34/+34