~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/net/mail/message.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý, Ondřej Surý, Michael Stapelberg
  • Date: 2012-06-28 12:14:15 UTC
  • mfrom: (1.1.15)
  • mto: (3.1.5 experimental) (14.3.1 saucy)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20120628121415-w1b0076ixkarr1ml
[ Ondřej Surý ]
* Imported Upstream version 1.0.2
* Update Vcs fields to reflect new git repository location
* Kill get-orig-source, since 1.0.0, the tarballs can be downloaded
  from webpage

[ Michael Stapelberg ]
* golang-mode: use debian-pkg-add-load-path-item (Closes: #664802)
* Add manpages (Closes: #632964)
* Use updated pt.po from Pedro Ribeiro (Closes: #674958)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
func init() {
70
70
        // Generate layouts based on RFC 5322, section 3.3.
71
71
 
72
 
        dows := [...]string{"", "Mon, "}     // day-of-week
73
 
        days := [...]string{"2", "02"}       // day = 1*2DIGIT
74
 
        years := [...]string{"2006", "06"}   // year = 4*DIGIT / 2*DIGIT
75
 
        seconds := [...]string{":05", ""}    // second
76
 
        zones := [...]string{"-0700", "MST"} // zone = (("+" / "-") 4DIGIT) / "GMT" / ...
 
72
        dows := [...]string{"", "Mon, "}   // day-of-week
 
73
        days := [...]string{"2", "02"}     // day = 1*2DIGIT
 
74
        years := [...]string{"2006", "06"} // year = 4*DIGIT / 2*DIGIT
 
75
        seconds := [...]string{":05", ""}  // second
 
76
        // "-0700 (MST)" is not in RFC 5322, but is common.
 
77
        zones := [...]string{"-0700", "MST", "-0700 (MST)"} // zone = (("+" / "-") 4DIGIT) / "GMT" / ...
77
78
 
78
79
        for _, dow := range dows {
79
80
                for _, day := range days {