According to the time-related service scheduling problem in software defined optical networks, a cross-layer control architecture and a time-flexible cross-layer optimization strategy of time-aware software defined optical networks are presented in this paper. With the introduction of time factor, we deploy the strategy to network controller. It can flexibly allocate resource to realize time-related business scheduling based on time-sensitivity of service. The simulation results show that, the proposed strategy can flexibly and efficiently allocate network and application resources by concerning time factor, which can overcome the congestion and low-usage of resource.