test: refactor cases

This commit is contained in:
jiajingbin 2024-07-18 15:37:30 +08:00
parent 97b5e8fde0
commit db4a2c7e98
1 changed files with 5 additions and 2 deletions

View File

@ -1799,10 +1799,13 @@ class TDCom:
def get_timestamp_n_days_later(self, n=30):
"""
Get the timestamp for a date 30 days later than the current date.
Get the timestamp of a date n days later from the current date.
Args:
n (int): Number of days to add to the current date. Default is 30.
Returns:
float: The timestamp for the date 30 days later.
int: Timestamp of the date n days later, in milliseconds.
"""
now = datetime.now()
thirty_days_later = now + timedelta(days=n)