<jupyter_start><jupyter_text>Time Functions<jupyter_code>def convert_days_to_seconds(days):
    hours = days * 24
    minutes = hours * 60
    seconds = minutes * 60
    return seconds
total_seconds = convert_days_to_seconds(7)
print("Total seconds in days:", total_seconds)
def convert_days_to_milliseconds(days):
    hours = days * 24
    minutes = hours * 60
    seconds = minutes * 60
    milliseconds = seconds * 1000
    return milliseconds
total_seconds = convert_days_to_milliseconds(7)
print("Total milliseconds in days:", total_seconds)
def convert_seconds_to_minutes(seconds):
    minutes = seconds/60
    return minutes
total_minutes = convert_seconds_to_minutes(120)
print("Total minutes in seconds:", total_minutes)
def convert_number_of_days(n):
    days_in_week = 7
    year = int(n / 365) 
    week = int((n % 365) / days_in_week) 
    days = (n % 365) % days_in_week  
      
    print("Years =",year, 
          "\nWeeks =",week, 
          "\nDays =",days) 
    return
convert_number_of_days(500)
def convert_number_birthday(n):
    days_in_week = 7
    years = int(n) 
    months = years * 12
    weeks = years * round((365/days_in_week),1) 
    days = years * 365
    hours = days * 24
    minutes = hours * 60
    seconds = minutes * 60
    milliseconds = seconds * 1000
    print("Years =",years, 
          "\nMonths =", months,
          "\nWeeks =",weeks,
          "\nDays =",days,
         "\nHours:", hours,
         "\nMinutes:", minutes,
         "\nSeconds:", seconds,
         "\nMilliseconds:", milliseconds)
    return
convert_number_birthday(1)<jupyter_output>Years = 1 
Months = 12 
Weeks = 52.1 
Days = 365 
Hours: 8760 
Minutes: 525600 
Seconds: 31536000 
Milliseconds: 31536000000
{'fraction_non_alphanumeric': 0.10807669959325973, 'fraction_numerical': 0.05520046484601976, 'mean_word_length': 3.061320754716981, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '458906', 'license': 'MIT', 'n_tokens_mistral': 661, 'n_tokens_neox': 557, 'n_words': 140, 'path': 'Math Apps Software/Time_Functions.ipynb', 'repo_name': 'damonclifford/Mathematics_for_Machine_Learning', 'size': '1721'}