TOTP.CurrentTime
----------------

Queries current time.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TOTP](component_TOTP.md) | [12.3](newinversion123.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "TOTP.CurrentTime" ) ### Parameters

none

### Result

Returns number or error.

### Description

Queries current time.  
Returns time stamp value for Unix time, which starts 1970.  
### Examples

Query time:

 Set Variable \[$time ; Value: MBS ( "TOTP.CurrentTime" ) \]  
<small>  
Example result: 1653371703</small>### See also

- [TOTP.Calculate](TOTPCalculate.md)

### Release notes

- **Version 12.3**
    - Added [TOTP.Calculate](https://www.mbsplugins.eu/TOTPCalculate.shtml) function and [TOTP.CurrentTime](https://www.mbsplugins.eu/TOTPCurrentTime.shtml) function to create Time-based one-time passwords.

### Example Databases

- [Utility functions/TOTP](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/TOTP.shtml#1Button150.0000000567.0000000180.0000000700.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS FileMaker Plugin 12.3](https://www.mbsplugins.de/archive/2022-07-19/MBS_FileMaker_Plugin_123/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.3pr1](https://www.mbsplugins.de/archive/2022-06-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 24th May 2022 , last changed 24th May 2022

  
[TOTP.Calculate](TOTPCalculate.md) - [TOTP.DecodeFromBase32](TOTPDecodeFromBase32.md)

[HTML Version](TOTPCurrentTime.shtml)