 |
Changeset 2978
- Timestamp:
- 12/07/07 23:47:37
(1 year ago)
- Author:
- kris
- Message:
* changed package tango.util.time to tango.time
* removed deprecated features of said package
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2465 |
r2978 |
|
| 6 | 6 | import tango.io.Stdout; |
|---|
| 7 | 7 | |
|---|
| 8 | | import tango.util.time.StopWatch; |
|---|
| | 8 | import tango.time.StopWatch; |
|---|
| 9 | 9 | |
|---|
| 10 | 10 | import tango.util.log.Configurator; |
|---|
| r2465 |
r2978 |
|
| 6 | 6 | import tango.io.Stdout; |
|---|
| 7 | 7 | |
|---|
| 8 | | import tango.util.time.StopWatch; |
|---|
| | 8 | import tango.time.StopWatch; |
|---|
| 9 | 9 | |
|---|
| 10 | 10 | import tango.util.log.Configurator; |
|---|
| r2465 |
r2978 |
|
| 8 | 8 | import tango.io.Stdout; |
|---|
| 9 | 9 | |
|---|
| 10 | | import tango.util.time.StopWatch; |
|---|
| | 10 | import tango.time.StopWatch; |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | import tango.util.log.Configurator; |
|---|
| r2965 |
r2978 |
|
| 25 | 25 | import tango.net.SocketConduit; |
|---|
| 26 | 26 | import tango.net.ServerSocket; |
|---|
| 27 | | import tango.util.time.Clock; |
|---|
| | 27 | import tango.time.Clock; |
|---|
| 28 | 28 | import tango.util.log.Log; |
|---|
| 29 | 29 | import tango.util.log.ConsoleAppender; |
|---|
| r2900 |
r2978 |
|
| 7 | 7 | private import tango.io.Stdout; |
|---|
| 8 | 8 | |
|---|
| 9 | | private import tango.util.time.WallClock; |
|---|
| | 9 | private import tango.time.WallClock; |
|---|
| 10 | 10 | |
|---|
| 11 | 11 | /****************************************************************************** |
|---|
| r2965 |
r2978 |
|
| 10 | 10 | private import tango.io.Console; |
|---|
| 11 | 11 | |
|---|
| 12 | | private import tango.util.time.Time; |
|---|
| | 12 | private import tango.time.Clock; |
|---|
| 13 | 13 | |
|---|
| 14 | 14 | private import tango.text.locale.Locale; |
|---|
| … | … | |
| 18 | 18 | auto layout = new Locale; |
|---|
| 19 | 19 | |
|---|
| 20 | | Cout (layout ("{:ddd, dd MMMM yyyy HH:mm:ss z}", Time.now)).newline; |
|---|
| | 20 | Cout (layout ("{:ddd, dd MMMM yyyy HH:mm:ss z}", Clock.now)).newline; |
|---|
| 21 | 21 | } |
|---|
| r2959 |
r2978 |
|
| 23 | 23 | private import tango.core.Exception; |
|---|
| 24 | 24 | |
|---|
| 25 | | private import tango.util.time.Time; |
|---|
| | 25 | private import tango.time.Time; |
|---|
| 26 | 26 | |
|---|
| 27 | 27 | /******************************************************************************* |
|---|
| r2932 |
r2978 |
|
| 9 | 9 | public import tango.io.model.IConduit; |
|---|
| 10 | 10 | |
|---|
| 11 | | public import tango.util.time.TimeSpan; |
|---|
| | 11 | public import tango.time.TimeSpan; |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | /** |
|---|
| r2932 |
r2978 |
|
| 67 | 67 | private import tango.core.Exception; |
|---|
| 68 | 68 | |
|---|
| 69 | | private import tango.util.time.TimeSpan; |
|---|
| | 69 | private import tango.time.TimeSpan; |
|---|
| 70 | 70 | |
|---|
| 71 | 71 | |
|---|
| r2932 |
r2978 |
|
| 19 | 19 | private import tango.net.Socket; |
|---|
| 20 | 20 | |
|---|
| 21 | | private import tango.util.time.TimeSpan; |
|---|
| | 21 | private import tango.time.TimeSpan; |
|---|
| 22 | 22 | |
|---|
| 23 | 23 | /******************************************************************************* |
|---|
| r2959 |
r2978 |
|
| 15 | 15 | private import tango.core.Exception; |
|---|
| 16 | 16 | |
|---|
| 17 | | private import tango.util.time.Clock; |
|---|
| | 17 | private import tango.time.Clock; |
|---|
| 18 | 18 | |
|---|
| 19 | 19 | public import tango.net.cluster.model.ICluster; |
|---|
| r2959 |
r2978 |
|
| 13 | 13 | module tango.net.cluster.QueuedCache; |
|---|
| 14 | 14 | |
|---|
| 15 | | private import tango.util.time.Time; |
|---|
| | 15 | private import tango.time.Time; |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | private import tango.net.cluster.model.ICache; |
|---|
| r2959 |
r2978 |
|
| 11 | 11 | module tango.net.cluster.model.ICache; |
|---|
| 12 | 12 | |
|---|
| 13 | | private import tango.util.time.Time; |
|---|
| | 13 | private import tango.time.Time; |
|---|
| 14 | 14 | |
|---|
| 15 | 15 | /****************************************************************************** |
|---|
| r2959 |
r2978 |
|
| 13 | 13 | module tango.net.cluster.model.IMessage; |
|---|
| 14 | 14 | |
|---|
| 15 | | public import tango.util.time.Time; |
|---|
| | 15 | public import tango.time.Time; |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | public import tango.io.protocol.model.IReader, |
|---|
| r2959 |
r2978 |
|
| 22 | 22 | tango.util.log.Logger; |
|---|
| 23 | 23 | |
|---|
| 24 | | private import tango.util.time.Clock; |
|---|
| | 24 | private import tango.time.Clock; |
|---|
| 25 | 25 | |
|---|
| 26 | 26 | private import tango.io.Buffer, |
|---|
| r2809 |
r2978 |
|
| 336 | 336 | version (QueueFile) |
|---|
| 337 | 337 | { |
|---|
| 338 | | import tango.util.time.StopWatch; |
|---|
| | 338 | import tango.time.StopWatch; |
|---|
| 339 | 339 | |
|---|
| 340 | 340 | import tango.util.log.Log, |
|---|
| r2959 |
r2978 |
|
| 17 | 17 | private import tango.net.ftp.Telnet; |
|---|
| 18 | 18 | |
|---|
| 19 | | private import tango.util.time.Date, |
|---|
| 20 | | tango.util.time.Clock; |
|---|
| | 19 | private import tango.time.Date, |
|---|
| | 20 | tango.time.Clock; |
|---|
| 21 | 21 | |
|---|
| 22 | 22 | private import tango.io.GrowBuffer, |
|---|
| … | … | |
| 31 | 31 | private import Timestamp = tango.text.convert.TimeStamp; |
|---|
| 32 | 32 | |
|---|
| 33 | | private import tango.util.time.TimeSpan; |
|---|
| | 33 | private import tango.time.TimeSpan; |
|---|
| 34 | 34 | |
|---|
| 35 | 35 | /// An FTP progress delegate. |
|---|
| r2959 |
r2978 |
|
| 17 | 17 | private import tango.core.Exception; |
|---|
| 18 | 18 | |
|---|
| 19 | | private import tango.util.time.Clock; |
|---|
| | 19 | private import tango.time.Clock; |
|---|
| 20 | 20 | |
|---|
| 21 | 21 | private import Integer = tango.text.convert.Integer; |
|---|
| 22 | 22 | |
|---|
| 23 | | private import tango.util.time.TimeSpan; |
|---|
| | 23 | private import tango.time.TimeSpan; |
|---|
| 24 | 24 | |
|---|
| 25 | 25 | |
|---|
| r2932 |
r2978 |
|
| 25 | 25 | tango.net.InternetAddress; |
|---|
| 26 | 26 | |
|---|
| 27 | | private import tango.util.time.TimeSpan; |
|---|
| | 27 | private import tango.time.TimeSpan; |
|---|
| 28 | 28 | |
|---|
| 29 | 29 | private import tango.net.http.HttpConst, |
|---|
| r2959 |
r2978 |
|
| 21 | 21 | private import tango.text.stream.LineIterator; |
|---|
| 22 | 22 | |
|---|
| 23 | | private import tango.util.time.Time; |
|---|
| | 23 | private import tango.time.Time; |
|---|
| 24 | 24 | |
|---|
| 25 | 25 | /****************************************************************************** |
|---|
| r2959 |
r2978 |
|
| 21 | 21 | private import tango.text.stream.SimpleIterator; |
|---|
| 22 | 22 | |
|---|
| 23 | | private import tango.util.time.Time; |
|---|
| | 23 | private import tango.time.Time; |
|---|
| 24 | 24 | |
|---|
| 25 | 25 | public import tango.net.http.model.HttpParamsView; |
|---|
| r2959 |
r2978 |
|
| 22 | 22 | private import Text = tango.text.Util; |
|---|
| 23 | 23 | |
|---|
| 24 | | private import tango.util.time.Time; |
|---|
| | 24 | private import tango.time.Time; |
|---|
| 25 | 25 | |
|---|
| 26 | 26 | private import tango.io.protocol.model.IWriter; |
|---|
| r2959 |
r2978 |
|
| 13 | 13 | module tango.net.http.model.HttpParamsView; |
|---|
| 14 | 14 | |
|---|
| 15 | | private import tango.util.time.Time; |
|---|
| | 15 | private import tango.time.Time; |
|---|
| 16 | 16 | |
|---|
| 17 | 17 | private import tango.io.model.IBuffer; |
|---|
| r2959 |
r2978 |
|
| 32 | 32 | private import tango.core.Exception; |
|---|
| 33 | 33 | |
|---|
| 34 | | private import tango.util.time.Date, |
|---|
| 35 | | tango.util.time.Clock; |
|---|
| | 34 | private import tango.time.Date, |
|---|
| | 35 | tango.time.Clock; |
|---|
| 36 | 36 | |
|---|
| 37 | 37 | private import Util = tango.text.Util; |
|---|
| r2959 |
r2978 |
|
| 17 | 17 | private import tango.text.locale.Core; |
|---|
| 18 | 18 | |
|---|
| 19 | | private import tango.util.time.Time, |
|---|
| 20 | | tango.util.time.WallClock; |
|---|
| 21 | | |
|---|
| 22 | | private import tango.util.time.chrono.Calendar; |
|---|
| | 19 | private import tango.time.Time, |
|---|
| | 20 | tango.time.WallClock; |
|---|
| | 21 | |
|---|
| | 22 | private import tango.time.chrono.Calendar; |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | private import Integer = tango.text.convert.Integer; |
|---|
| … | … | |
| 96 | 96 | * Examples: |
|---|
| 97 | 97 | * --- |
|---|
| 98 | | * import tango.io.Print, tango.text.locale.Core, tango.util.time.WallClock; |
|---|
| | 98 | * import tango.io.Print, tango.text.locale.Core, tango.time.WallClock; |
|---|
| 99 | 99 | * |
|---|
| 100 | 100 | * void main() { |
|---|
| r2959 |
r2978 |
|
| 109 | 109 | private import tango.text.locale.Data; |
|---|
| 110 | 110 | |
|---|
| 111 | | private import tango.util.time.Time; |
|---|
| 112 | | |
|---|
| 113 | | private import tango.util.time.chrono.Hijri, |
|---|
| 114 | | tango.util.time.chrono.Korean, |
|---|
| 115 | | tango.util.time.chrono.Taiwan, |
|---|
| 116 | | tango.util.time.chrono.Hebrew, |
|---|
| 117 | | tango.util.time.chrono.Calendar, |
|---|
| 118 | | tango.util.time.chrono.Japanese, |
|---|
| 119 | | tango.util.time.chrono.Gregorian, |
|---|
| 120 | | tango.util.time.chrono.ThaiBuddhist; |
|---|
| | 111 | private import tango.time.Time; |
|---|
| | 112 | |
|---|
| | 113 | private import tango.time.chrono.Hijri, |
|---|
| | 114 | tango.time.chrono.Korean, |
|---|
| | 115 | tango.time.chrono.Taiwan, |
|---|
| | 116 | tango.time.chrono.Hebrew, |
|---|
| | 117 | tango.time.chrono.Calendar, |
|---|
| | 118 | tango.time.chrono.Japanese, |
|---|
| | 119 | tango.time.chrono.Gregorian, |
|---|
| | 120 | tango.time.chrono.ThaiBuddhist; |
|---|
| 121 | 121 | |
|---|
| 122 | 122 | version (Windows) |
|---|
| r2959 |
r2978 |
|
| 41 | 41 | tango.text.locale.Convert; |
|---|
| 42 | 42 | |
|---|
| 43 | | private import tango.util.time.Time; |
|---|
| | 43 | private import tango.time.Time; |
|---|
| 44 | 44 | |
|---|
| 45 | 45 | private import tango.text.convert.Layout; |
|---|
| … | … | |
| 117 | 117 | { |
|---|
| 118 | 118 | import tango.io.Console; |
|---|
| 119 | | import tango.util.time.WallClock; |
|---|
| | 119 | import tango.time.WallClock; |
|---|
| 120 | 120 | |
|---|
| 121 | 121 | void main () |
|---|
| r2959 |
r2978 |
|
| 17 | 17 | private import tango.text.locale.Core; |
|---|
| 18 | 18 | |
|---|
| 19 | | private import tango.util.time.Time, |
|---|
| 20 | | tango.util.time.WallClock; |
|---|
| 21 | | |
|---|
| 22 | | private import tango.util.time.chrono.Calendar; |
|---|
| | 19 | private import tango.time.Time, |
|---|
| | 20 | tango.time.WallClock; |
|---|
| | 21 | |
|---|
| | 22 | private import tango.time.chrono.Calendar; |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | private struct DateTimeParseResult { |
|---|
| r2809 |
r2978 |
|
| 18 | 18 | private import tango.text.Util; |
|---|
| 19 | 19 | |
|---|
| 20 | | private import tango.util.time.Clock, |
|---|
| 21 | | tango.util.time.WallClock; |
|---|
| | 20 | private import tango.time.Clock, |
|---|
| | 21 | tango.time.WallClock; |
|---|
| 22 | 22 | |
|---|
| 23 | 23 | private import Int = tango.text.convert.Integer; |
|---|
| r2959 |
r2978 |
|
| 20 | 20 | private import tango.core.Exception; |
|---|
| 21 | 21 | |
|---|
| 22 | | private import tango.util.time.Clock; |
|---|
| | 22 | private import tango.time.Clock; |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | private import tango.util.log.model.ILevel, |
|---|
| r2959 |
r2978 |
|
| 15 | 15 | private import tango.util.log.Event; |
|---|
| 16 | 16 | |
|---|
| 17 | | private import tango.util.time.TimeSpan; |
|---|
| | 17 | private import tango.time.TimeSpan; |
|---|
| 18 | 18 | |
|---|
| 19 | | private import tango.util.time.Time; |
|---|
| | 19 | private import tango.time.Time; |
|---|
| 20 | 20 | |
|---|
| 21 | 21 | /******************************************************************************* |
|---|
| r2913 |
r2978 |
|
| 23 | 23 | private import tango.util.log.model.IHierarchy; |
|---|
| 24 | 24 | |
|---|
| 25 | | private import tango.util.time.Clock; |
|---|
| | 25 | private import tango.time.Clock; |
|---|
| 26 | 26 | |
|---|
| 27 | 27 | /******************************************************************************* |
|---|
| r2932 |
r2978 |
|
| 18 | 18 | private import tango.util.log.model.ILevel; |
|---|
| 19 | 19 | |
|---|
| 20 | | private import tango.util.time.TimeSpan; |
|---|
| | 20 | private import tango.time.TimeSpan; |
|---|
| 21 | 21 | |
|---|
| 22 | 22 | /******************************************************************************* |
|---|
| r2959 |
r2978 |
|
| 22 | 22 | tango.util.log.FileAppender; |
|---|
| 23 | 23 | |
|---|
| 24 | | private import tango.util.time.Time; |
|---|
| | 24 | private import tango.time.Time; |
|---|
| 25 | 25 | |
|---|
| 26 | 26 | /******************************************************************************* |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic