<commit_before>[//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/device/system/system-time.yml)
# Get System Time

Get the time on the device
[//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/device/system/system-time.yml)
## Example Usage

```java
// Java
String time = driver.getDeviceTime();

```

```python
# Python
time = self.driver.device_time()

```

```javascript
// Javascript
// webdriver.io example
let time = driver.getDeviceTime();

// wd example
let time = await driver.getDeviceTime();

```

```ruby
# Ruby
# ruby_lib example
device_time

# ruby_lib_core example
@driver.device_time

```

```php
# PHP
$time = $driver->getDeviceTime();

```

```csharp
// C#<commit_msg>Update generated docs (#11948)<commit_after>[//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/device/system/system-time.yml)
# Get System Time

Get the time on the device
[//]: # (DO NOT EDIT THIS FILE! This is an auto-generated file. Editing for this document happens in /commands-yml/commands/device/system/system-time.yml)
## Example Usage

```java
// Java
String time = driver.getDeviceTime();

```

```python
# Python
time = self.driver.device_time

```

```javascript
// Javascript
// webdriver.io example
let time = driver.getDeviceTime();

// wd example
let time = await driver.getDeviceTime();

```

```ruby
# Ruby
# ruby_lib example
device_time

# ruby_lib_core example
@driver.device_time

```

```php
# PHP
$time = $driver->getDeviceTime();

```

```csharp
// C#
{'fraction_non_alphanumeric': 0.14812611540749554, 'fraction_numerical': 0.00297441998810232, 'mean_word_length': 4.128048780487805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6637544', 'n_tokens_mistral': 581, 'n_tokens_neox': 528, 'n_words': 166}