|
@@ 1491-1502 (lines=12) @@
|
| 1488 |
|
* @author The ICU Project |
| 1489 |
|
* @since 0.11.0 |
| 1490 |
|
*/ |
| 1491 |
|
public function set1($field, $value) |
| 1492 |
|
{ |
| 1493 |
|
if ($this->fAreFieldsVirtuallySet) { |
| 1494 |
|
$this->computeFields(); |
| 1495 |
|
} |
| 1496 |
|
|
| 1497 |
|
$this->fFields[$field] = $value; |
| 1498 |
|
$this->fStamp[$field] = $this->fNextStamp++; |
| 1499 |
|
$this->fIsSet[$field] = true; // Remove later |
| 1500 |
|
$this->fIsTimeSet = $this->fAreFieldsInSync = $this->fAreFieldsVirtuallySet = false; |
| 1501 |
|
} |
| 1502 |
|
|
| 1503 |
|
/** |
| 1504 |
|
* Sets the values for the fields YEAR, MONTH, and DATE. Other field values |
| 1505 |
|
* are retained; call clear() first if this is not desired. |
|
@@ 1631-1640 (lines=10) @@
|
| 1628 |
|
* @author The ICU Project |
| 1629 |
|
* @since 0.11.0 |
| 1630 |
|
*/ |
| 1631 |
|
public function clear2($field) |
| 1632 |
|
{ |
| 1633 |
|
if ($this->fAreFieldsVirtuallySet) { |
| 1634 |
|
$this->computeFields(); |
| 1635 |
|
} |
| 1636 |
|
$this->fFields[$field] = 0; |
| 1637 |
|
$this->fStamp[$field] = self::kUnset; |
| 1638 |
|
$this->fIsSet[$field] = false; // Remove later |
| 1639 |
|
$this->fIsTimeSet = $this->fAreFieldsInSync = $this->fAreAllFieldsSet = $this->fAreFieldsVirtuallySet = false; |
| 1640 |
|
} |
| 1641 |
|
|
| 1642 |
|
/** |
| 1643 |
|
* Converts Calendar's time field values to GMT as milliseconds. |