Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 2 and Version 3 of DateLocalizationUsingVersionExample

Show
Ignore:
Author:
ioe (IP: 84.131.205.223)
Timestamp:
07/08/07 18:05:50 (14 years ago)
Comment:

Correct German format to the one used (I'm native German), Add ISO_8601 format, which is understood worldwide.

Legend:

Unmodified
Added
Removed
Modified
  • DateLocalizationUsingVersionExample

    v2 v3  
    3434 
    3535    version(GERMAN) 
    36       return toString(yr) ~ "-" ~ leadingZeros(month, 2) ~ "-" ~  
    37         leadingZeros(day, 2); 
     36      return leadingZeros(day, 2) ~ "." ~ leadingZeros(month, 2) ~ "." ~  
     37        leadingZeros(Yr, 2); 
    3838 
    3939    version(ITALIAN) 
    6464      return leadingZeros(day, 2) ~ "/" ~ leadingZeros(month, 2) ~ "/" ~  
    6565        toString(yr);       
     66 
     67    version(ISO_8601) 
     68      return toString(yr) ~ "-" ~ leadingZeros(month, 2) ~ "-" ~  
     69        leadingZeros(day, 2); 
     70 
     71 
    6672} 
    6773