[MM-45052] Mark method as deprecated (#21703)

Этот коммит содержится в:
cyrilzhang-mm
2022-12-08 15:38:29 -05:00
коммит произвёл GitHub
родитель 64add1a108
Коммит 7c7acb476e

Просмотреть файл

@@ -248,6 +248,9 @@ func ToDailyPostCountViewModel(dpc []*DurationPostCount, startTime *time.Time, n
return viewModel
}
// Deprecated: This method doesn't perform error checking.
// Use GetStartOfDayForTimeRange instead.
//
// StartOfDayForTimeRange gets the unix start time in milliseconds from the given time range.
// Time range can be one of: "today", "7_day", or "28_day".
func StartOfDayForTimeRange(timeRange string, location *time.Location) *time.Time {