| 1 |
// timezone tapset |
| 2 |
// Copyright (C) 2010 Red Hat Inc. |
| 3 |
// |
| 4 |
// This file is part of systemtap, and is free software. You can |
| 5 |
// redistribute it and/or modify it under the terms of the GNU General |
| 6 |
// Public License (GPL); either version 2, or (at your option) any |
| 7 |
// later version. |
| 8 |
|
| 9 |
|
| 10 |
/** |
| 11 |
* sfunction tz_gmtoff - Return local time zone offset |
| 12 |
* |
| 13 |
* Description: Returns the local time zone offset (seconds west of UTC), as |
| 14 |
* passed by staprun at script startup only. |
| 15 |
*/ |
| 16 |
function tz_gmtoff() { |
| 17 |
return %{ /* pure */ /* unprivileged */ tz_gmtoff %} |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* sfunction tz_name - Return local time zone name |
| 22 |
* |
| 23 |
* Description: Returns the local time zone name, as passed by staprun at |
| 24 |
* script startup only. |
| 25 |
*/ |
| 26 |
function tz_name() { |
| 27 |
return %{ /* pure */ /* unprivileged */ /* string */ tz_name %} |
| 28 |
} |