This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import datetime | |
| import time | |
| def valid_date(s): | |
| try: | |
| return datetime.datetime.strptime(s, "%Y-%m-%d %H:%M") | |
| except ValueError: | |
| msg = "Not a valid date: '{0}'.".format(s) | |
| raise argparse.ArgumentTypeError(msg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace app\controllers; | |
| use Yii; | |
| use app\models\Test; | |
| use app\models\TestSearch; | |
| use yii\web\Controller; | |
| use yii\web\NotFoundHttpException; | |
| use yii\filters\VerbFilter; |