all options
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: golang-github-jinzhu-now  ]

Package: golang-github-jinzhu-now-dev (1.1.1-1)

Links for golang-github-jinzhu-now-dev

Screenshot

Debian Resources:

Download Source Package golang-github-jinzhu-now:

Maintainers:

External Resources:

Similar packages:

Tidsværktøjssæt for Golang

Denne pakke er nu et tidsværktøjssæt for Golang.

  time.Now() // 2013-11-18 17:51:49.123456789 Mon

  BeginningOfMinute() // 2013-11-18 17:51:00 Mon
  BeginningOfHour()   // 2013-11-18 17:00:00 Mon
  BeginningOfDay()    // 2013-11-18 00:00:00 Mon
  BeginningOfWeek()   // 2013-11-17 00:00:00 Sun

  FirstDayMonday = true // Angiv mandag som første dag
  BeginningOfWeek()     // 2013-11-18 00:00:00 Mon
  BeginningOfMonth()    // 2013-11-01 00:00:00 Fri
  BeginningOfQuarter()  // 2013-10-01 00:00:00 Tue
  BeginningOfYear()     // 2013-01-01 00:00:00 Tue

  EndOfMinute() // 2013-11-18 17:51:59.999999999 Mon
  EndOfHour()   // 2013-11-18 17:59:59.999999999 Mon
  EndOfDay()    // 2013-11-18 23:59:59.999999999 Mon
  EndOfWeek()   // 2013-11-23 23:59:59.999999999 Sat

  FirstDayMonday = true // Angiv mandag som første dag
  EndOfWeek()           // 2013-11-24 23:59:59.999999999 Sun
  EndOfMonth()          // 2013-11-30 23:59:59.999999999 Sat
  EndOfQuarter()        // 2013-12-31 23:59:59.999999999 Tue
  EndOfYear()           // 2013-12-31 23:59:59.999999999 Tue

  // Brug et andet tidsformat
  t := time.Date(2013, 02, 18, 17, 51, 49, 123456789, time.UTC)
  New(t).EndOfMonth() // 2013-02-28 23:59:59.999999999 Thu

  Monday()      // 2013-11-18 00:00:00 Mon
  Sunday()      // 2013-11-24 00:00:00 Sun
  EndOfSunday() // 2013-11-24 23:59:59.999999999 Sun

Denne pakke indeholder kilden.

Download golang-github-jinzhu-now-dev

Download for all available architectures
Architecture Package Size Installed Size Files
all 9.3 kB43.0 kB [list of files]