A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

Golang outputs the current timestamp and decomposes it into time, minutes and seconds - Pastebin.vip - paste tool since 2022!

Golang outputs the current timestamp and decomposes it into time, minutes and seconds

From , 5 Years ago, written in Go, viewed 205 times.
URL https://pastebin.vip/view/785ca71d
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5.     "time"
  6. )
  7.  
  8. func main() {
  9.     //时间戳
  10.     t := time.Now().Unix()
  11.     fmt.Println(t)
  12.      
  13.     //时间戳到具体显示的转化
  14.     fmt.Println(time.Unix(t, 0).String())
  15.      
  16.     //带纳秒的时间戳
  17.     t = time.Now().UnixNano()
  18.     fmt.Println(t)
  19.     fmt.Println("------------------")
  20.      
  21.     //基本格式化的时间表示
  22.     fmt.Println(time.Now().String())
  23.      
  24.     fmt.Println(time.Now().Format("2006year 01month 02day"))
  25.  
  26. }
  27. //go/8506

Reply to "Golang outputs the current timestamp and decomposes it into time, minutes and seconds"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website