mirror of
https://github.com/ManyakRus/telegram_loki.git
synced 2025-03-03 15:02:18 +02:00
сделал StringDateTime
This commit is contained in:
parent
774d7a2b55
commit
1949ae29b4
21
internal/logic/loki/logic_loki_test.go
Normal file
21
internal/logic/loki/logic_loki_test.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package loki
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/ManyakRus/starter/config_main"
|
||||||
|
"github.com/ManyakRus/telegram_loki/internal/config"
|
||||||
|
"github.com/ManyakRus/telegram_loki/internal/load_json"
|
||||||
|
"github.com/golang-module/carbon/v2"
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestStart_period(t *testing.T) {
|
||||||
|
config_main.LoadENV_or_SettingsTXT()
|
||||||
|
config.FillSettings()
|
||||||
|
load_json.LoadJSON_All()
|
||||||
|
|
||||||
|
Date2 := time.Now()
|
||||||
|
Date1 := carbon.CreateFromStdTime(Date2).AddMinutes(-200).StdTime()
|
||||||
|
Start_period(Date1, Date2)
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user