about summary refs log tree commit diff
path: root/src/libstd/time.rs
AgeCommit message (Collapse)AuthorLines
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-4/+4
2013-05-09libstd: rename vec::each(var) to var.eachYoungmin Yoo-9/+8
2013-04-27only use #[no_core] in libcoreDaniel Micay-9/+0
2013-04-20std: remove unused 'mut' variablesAlex Crichton-2/+2
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-11/+11
pub mod or pub fn).
2013-04-08Removing no longer needed unsafe blocksAlex Crichton-6/+2
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-182/+182
2013-03-23replace impls with `deriving` where applicableAndrew Paseltiner-25/+2
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-3/+3
2013-03-22libstd: Remove all uses of `pure` from libstd. rs=depurePatrick Walton-17/+17
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-1/+1
2013-03-20libsyntax: Never use `::<>` in the type grammarPatrick Walton-2/+2
2013-03-13Revamp foreign code not to consider the Rust modes. This requiresNiko Matsakis-8/+8
adjusting a few foreign functions that were declared with by-ref mode. This also allows us to remove by-val mode in the near future. With copy mode, though, we have to be careful because Rust will implicitly pass somethings by pointer but this may not be the C ABI rules. For example, rust will pass a struct Foo as a Foo*. So I added some code into the adapters to fix this (though the C ABI rules may put the pointer back, oh well). This patch also includes a lint mode for the use of by-ref mode in foreign functions as the semantics of this have changed.
2013-03-07test: Fix tests.Patrick Walton-8/+8
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-184/+184
2013-03-07libstd: Remove `extern mod { ... }` from libstd. rs=deexterningPatrick Walton-12/+20
2013-03-07De-implicit-self libstdBen Striegel-9/+9
2013-03-04Remove unused imports throughout src/Alex Crichton-3/+0
2013-02-28Fix implicit leaks of imports throughout librariesAlex Crichton-8/+7
Also touch up use of 'pub' and move some tests around so the tested functions don't have to be 'pub'
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-2/+2
2013-02-26Removed deprecated `str()` functions in int-template.rs and uint-template.rsMarvin Löbel-10/+10
2013-02-15libstd: Get rid of `move`.Luqman Aden-7/+7
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-3/+3
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+2
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-2/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-03Fixed `fmt!`, tests, doc-tests.Marvin Löbel-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-29libstd: De-export libstd. rs=deexportPatrick Walton-21/+18
2013-01-24time tests are racing on tzset, so merge the tests together.Erick Tryzelaar-12/+16
This attempts to fix issue #3327.
2013-01-22std: un-ignore strptime test; fix bug introduced by 1a226f instead.Graydon Hoare-2/+1
2013-01-22std: Ignore time::tests::test_strptime, it's failing for some reasonTim Chevalier-0/+1
I'll file an issue.
2013-01-22Merge pull request #4466 from ScriptDevil/masterTim Chevalier-33/+34
Range checking and miscellaneous fixes tin time library
2013-01-21Add Timespec comment and assert about negative nsecChris Peterson-0/+11
2013-01-20Merge pull request #4519 from cpeterso/impl-timespec-ordTim Chevalier-2/+46
Implement Ord trait for Timespec
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