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

« back to all changes in this revision

Viewing changes to src/pkg/time/format.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
                var p string
249
249
                switch std {
250
250
                case stdYear:
251
 
                        p = strconv.Itoa64(t.Year % 100)
 
251
                        p = zeroPad(int(t.Year % 100))
252
252
                case stdLongYear:
253
253
                        p = strconv.Itoa64(t.Year)
254
254
                case stdMonth:
355
355
        return t.Format(UnixDate)
356
356
}
357
357
 
358
 
var errBad = os.ErrorString("bad") // just a marker; not returned to user
 
358
var errBad = os.NewError("bad") // just a marker; not returned to user
359
359
 
360
360
// ParseError describes a problem parsing a time string.
361
361
type ParseError struct {