about summary refs log tree commit diff
path: root/src/libstd/time.rs
AgeCommit message (Collapse)AuthorLines
2013-01-17librustc: Implement write guards for borrowing `@mut` to `&` or `&mut`. ↵Patrick Walton-23/+23
r=nmatsakis
2013-01-16Implement Ord trait for TimespecChris Peterson-2/+46
2013-01-14Tidied up long linesAshok Gautham-5/+8
2013-01-13Add range checking in the time libraryAshok Gautham-26/+24
This was requested in Issue #2350. New function match_digits_in_range added and used instead of match_digits wherever needed.
2013-01-13Fix errors in how parsed time values were usedAshok Gautham-2/+2
%u flag takes a value in the range of 1-7. However value needs to be stored in tm.tm_wday between 0 and 6. %y takes a two-digit year value. Subtracting 1900_i32 from it is not needed.
2013-01-13Fix incorrect error messages in the time libraryAshok Gautham-5/+5
2013-01-10librustc: Make all external functions unsafe. r=tjcPatrick Walton-29/+41
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+3
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-3/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+3
module scope. r=tjc
2012-12-27libstd: Fix a bunch of resolve errors in tests. rs=firePatrick Walton-6/+14
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-3/+7
contain at least two components. r=graydon
2012-12-23Merge pull request #4243 from erickt/incomingTim Chevalier-78/+39
Fix a bug in Result::unwrap_err (and minor cleanup)
2012-12-20Ignore some time testsBrian Anderson-0/+2
2012-12-20Switch chain calls to use Option::chain methodErick Tryzelaar-78/+39
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