Skip to main content
Back to top
Ctrl
+
K
Tutorials
API reference
What’s new
Code of conduct
Contributing
Search
Ctrl
+
K
Web
GitHub
Search
Ctrl
+
K
Tutorials
API reference
What’s new
Code of conduct
Contributing
Web
GitHub
Section Navigation
arrays
BaseArr
Arr
FloatArr
BoolArr
State
IndexArr
uids
calibration
Calibration
CalibComponent
demographics
Demographics
Births
Deaths
Pregnancy
disease
Disease
Infection
InfectionLog
distributions
Dists
Dist
random
uniform
normal
lognorm_ex
lognorm_im
expon
poisson
nbinom
weibull
gamma
constant
randint
rand_raw
bernoulli
choice
histogram
multi_random
link_dists
make_dist
interventions
Intervention
RoutineDelivery
CampaignDelivery
BaseTest
BaseScreening
routine_screening
campaign_screening
BaseTriage
routine_triage
campaign_triage
BaseTreatment
treat_num
BaseVaccination
routine_vx
campaign_vx
loop
Loop
modules
Base
Module
Analyzer
Connector
module_map
find_modules
networks
Route
Network
DynamicNetwork
SexualNetwork
StaticNet
RandomNet
ErdosRenyiNet
DiskNet
NullNet
MFNet
MSMNet
EmbeddingNet
MaternalNet
PrenatalNet
PostnatalNet
AgeGroup
MixingPools
MixingPool
parameters
Pars
SimPars
make_pars
people
People
Person
products
Product
Dx
Tx
Vx
results
Result
Results
run
MultiSim
single_run
multi_run
parallel
samples
Dataset
Samples
settings
dtypes
sim
Sim
demo
diff_sims
check_sims_match
starsim.sim.AlreadyRunError
time
date
Time
TimePar
dur
rate
time_prob
beta
rate_prob
time_ratio
date_add
date_diff
days
years
perday
peryear
utils
ndict
warn
find_contacts
set_seed
check_requires
standardize_netkey
standardize_data
validate_sim_data
load
save
return_fig
On this page
date_diff()
API reference
time
date_diff
date_diff
#
date_diff
(
start
,
stop
,
unit
)
[source]
#
Find the difference between two dates (or integers)
Tutorials
API reference
What’s new
Code of conduct
Contributing