File: control

package info (click to toggle)
golang-github-jinzhu-now 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 116 kB
  • sloc: makefile: 2
file content (59 lines) | stat: -rw-r--r-- 2,245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Source: golang-github-jinzhu-now
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Tianon Gravi <tianon@debian.org>,
           Anthony Fok <foka@debian.org>
Section: golang
Testsuite: autopkgtest-pkg-go
Priority: optional
Build-Depends: debhelper-compat (= 13),
               dh-golang,
               golang-any,
               tzdata
Standards-Version: 4.5.1
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-jinzhu-now
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-jinzhu-now.git
Homepage: https://github.com/jinzhu/now
Rules-Requires-Root: no
XS-Go-Import-Path: github.com/jinzhu/now

Package: golang-github-jinzhu-now-dev
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends},
         ${shlibs:Depends}
Description: time toolkit for golang
 Package now is a time toolkit 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 // Set Monday as first day
   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 // Set Monday as first day
   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
 .
   // Use another time
   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
 .
 This package contains the source.