# Condition based on system time?

**URL:** <https://forum.kirupa.com/t/condition-based-on-system-time/240676>\
**Category:** flash\
**Created:** [October 4, 2007, 10:35pm UTC](https://forum.kirupa.com/t/condition-based-on-system-time/240676 "2007-10-04T22:35:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodman650](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@woodman650](https://forum.kirupa.com/u/woodman650)\
**Post date:** [October 4, 2007, 10:35pm UTC](https://forum.kirupa.com/t/condition-based-on-system-time/240676/1 "2007-10-04T22:35:34Z")

</div>

Hey all,

I just wondered… I am playing around with the timedate.getHours(); function and I was wondering how I might go about setting up a condition whereby between 3am and 3pm, movieclip1 loads and between 3pm and 3am, movieclip2 loads?

I’m sure it’s not that difficult but I’m not sure how to structure the if/else statement or read the hour from the timedate function. Thanks in advance!
