Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3466

Show
Ignore:
Timestamp:
04/26/08 06:47:01 (7 months ago)
Author:
lmartin92
Message:

Update to stop printing the address of a the time object.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lmartin/ftp/tango/net/ftp/FtpClient.d

    r3465 r3466  
    869869    import tango.io.Stdout; 
    870870    import tango.io.Console; 
     871    import tango.text.locale.Locale; 
    871872 
    872873    void main() { 
     874        auto layout = new Locale; 
    873875        Stdout("Testing the new parts in FtpClient.d").newline.flush; 
    874876        FTPConnection conn = new FTPConnection("localhost", "me", "pass", 21); 
     
    889891        conn.rename("ServingSchedule.tif", "No"); 
    890892        Stdout("Getting the mod date.").newline.flush; 
    891         Time* modified = conn.modified("No"); 
     893        Time modified = *(conn.modified("No")); 
    892894        Stdout("The file was modified: "); 
    893         Stdout(modified).newline.flush; 
     895        Stdout(layout ("{:ddd, dd MMMM yyyy HH:mm:ss z}", modified)).newline.flush; 
    894896        Stdout("Press enter.").newline.flush; 
    895897        Cin.get();