1
0
mirror of https://github.com/ManyakRus/telegram_loki.git synced 2024-12-12 09:33:50 +02:00

сделал StringDateTime

This commit is contained in:
Nikitin Aleksandr 2024-11-11 11:32:57 +03:00
parent 774d7a2b55
commit 1949ae29b4

View 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)
}