schema.utils.time_record.create_date_interval_pb

Creates a DateInterval proto for the given start and end dates.

start_date A datetime object representing the start date.
end_date A datetime object representing the end date.
tag An optional tag to identify the date interval.

Returns a date interval proto wrapping the start/end dates.