MAKS\AmqpAgent\Helper\Utility::time
Returns a DateTime object with the right time zone.
Signature
public function time([string
$time = 'now',
[string
$timezone = NULL]] )
Parameters
$time
—
string
- A valid php date/time string.
$timezone
—
string
- A valid php timezone string.
Returns
- DateTime
Errors/Exceptions
-
Exception
Test Coverage
Information
- Coverage: 7/7 Lines (100%)
- Tests: 4
- Passed: 4 (100%)
Tests
- [ PASSED ] — MAKS\AmqpAgent\Tests\Helper\UtilityTest::testTimeWithAllParameters
- [ PASSED ] — MAKS\AmqpAgent\Tests\Helper\LoggerTest::testGeneratingALogFileIfItDoesNotExistAndWritingToIt
- [ PASSED ] — MAKS\AmqpAgent\Tests\Helper\LoggerTest::testStaticCallingAndInsufficientCalling
- [ PASSED ] — MAKS\AmqpAgent\Tests\Helper\LoggerTest::testGettersAndSetters