RWMB_Datetime_Field::value PHP 메소드

value() 공개 정적인 메소드

Calculates the timestamp from the datetime string and returns it if $field['timestamp'] is set or the datetime string if not
public static value ( mixed $new, mixed $old, integer $post_id, array $field ) : string | integer
$new mixed
$old mixed
$post_id integer
$field array
리턴 string | integer
    public static function value($new, $old, $post_id, $field)
    {
        return $field['timestamp'] ? $new['timestamp'] : $new;
    }