How to write this pseudo code in Python? With 'created_date' is a datetime object.
if (created_date + 30days) < now: print 'valid' else: print 'expired'
import datetime as DT if (created_date + DT.timedelta(days=30)) < DT.datetime.now(): print('valid') else: print('expired')
Source: https://habr.com/ru/post/1346160/More articles:Java: a fast / elegant way to check for null - javaCreate a 2D array with variable sizes - c ++Class definition in JavaScript - javascriptMigrating Rails: Add One Column to Multiple Tables - timestampStarting 100 threads in parallel and starting missing threads if some of the previous ones are completed - javaHow to use ExecutorService for Java programming at the same time? - javaHow to use Lawnchair with more than one table? - javascriptDocument Management System for asp.net - asp.netC # Prevent Adobe Reader from appearing when trying to print a document - c #How can I implement or find the thread-safe CompletionService equivalent? - javaAll Articles